PHPackages                             pavlaq/przelewy24-bundle-fork - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pavlaq/przelewy24-bundle-fork

ActiveSymfony-bundle[API Development](/categories/api)

pavlaq/przelewy24-bundle-fork
=============================

This is Symfony 3.3+ P24 Bundle.

v1.2.0(4y ago)02MITPHPPHP ^5.5.9 || ^7.0

Since Mar 10Pushed 3y agoCompare

[ Source](https://github.com/PavlaQ/Przelewy24Bundle)[ Packagist](https://packagist.org/packages/pavlaq/przelewy24-bundle-fork)[ RSS](/packages/pavlaq-przelewy24-bundle-fork/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Allset Przelewy24 Bundle
========================

[](#allset-przelewy24-bundle)

This is **superb easy to use** Przelewy24 Bundle with bulit-in Symfony Events.

Instalation
-----------

[](#instalation)

```
composer require allset/przelewy24-bundle

```

and then update your `AppKernel.php`:

```
// ...
class AppKernel extends Kernel
// ...
    public function registerBundles()
    {
        $bundles = [
		// ...
            new Allset\Przelewy24Bundle\AllsetPrzelewy24Bundle(),
		// ...
        ];
	}
```

Than add to your `routing.yml` file:

```
#app/config/routing.yml
allset_przelewy24:
    resource: "@AllsetPrzelewy24Bundle/Resources/config/routing.xml"
```

If you want to have access to Test Tools add this to `routing_dev.yml`:

```
#app/config/routing_dev.yml
allset_przelewy24:
    resource: "@AllsetPrzelewy24Bundle/Resources/config/routing_dev.xml"
```

Requirements
------------

[](#requirements)

*Symfony 3.3++* (becouse bundle is using Symfony Service Autowire)
*Guzzle ^6.3* (already included in composer.json)

Config
------

[](#config)

Add to your config folowing lines:

```
#app/config/config.yml
allset_przelewy24:
    sandbox: true #or false
    merchant_id:
    crc_key:
```

Usage
-----

[](#usage)

##### 1. Create your super-custom action

[](#1-create-your-super-custom-action)

In your controller.

```
// ...

use Allset\Przelewy24Bundle\Factory\ProcessFactory;
use Allset\Przelewy24Bundle\Model\Payment;

// ...

class AppController extends Controller
{

    // ...

    public function processAction(ProcessFactory $processFactory)
    {
	    $order = // ... - You are creating your order here

        $payment = new Payment();
        $payment
            ->setCurrency('PLN')
            ->setSessionId($order->geToken()) //VERY IMPORTANT some unique id from your order in your db
            ->setAmount($order->getAmount())
            ->setDescription($order->getDesc())
            ->setEmail($order->getEmail())
            ->setReturnUrl($this->generateUrl('return', [], 0)); // use following syntax to genreate absolute url

        $processFactory->setPayment($payment);
        $url = $processFactory->createAndGetUrl();

        return $this->redirect($url);
    }

    // ...

}
```

##### 2. Register Payment Success Event Listener

[](#2-register-payment-success-event-listener)

```
#app/config/services.yml
    AppBundle\EventListener\Przelewy24\PaymentSuccessListener:
        tags:
            - { name: kernel.event_listener, event: przelewy24.event.payment_success }
```

##### 3. Do what only you want with your succesed payment

[](#3-do-what-only-you-want-with-your-succesed-payment)

```
namespace AppBundle\EventListener\Przelewy24;

use Allset\Przelewy24Bundle\Event\PaymentEventInterfce;

class PaymentSuccessListener
{
    // ..

    public function onPrzelewy24EventPaymentSuccess(PaymentEventInterfce $event)
    {
        $token = $event->getPayment()->getSessionId();

	// ..

    }
}
```

Developer Tools
---------------

[](#developer-tools)

##### Testing connection

[](#testing-connection)

To access tests you have to add `@AllsetPrzelewy24Bundle/Resources/config/routing_dev.xml` to your `rounting_dev.yml` file. (check out Instaltion chapter).

After that you have access to `allset_przelewy24_test` route or simpler go to `/p24-test` path and checkout the results.

##### Simulating Payment Success

[](#simulating-payment-success)

Due to Przelewy24 native API you are unable to get success response on your localhost, but you can simulate it with Simulating Payment Success Tool.

To access simulating you have to add `@AllsetPrzelewy24Bundle/Resources/config/routing_dev.xml` to your `rounting_dev.yml` file. (check out Instaltion chapter).

After that you can simply go to `/p24-fake-success/{sessionId}` path or redirect to route `allset_przelewy24_fake_success` to make bundle to trigger `przelewy24.event.payment_success` event.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~435 days

Total

4

Last Release

1678d ago

Major Versions

v0.0.1 → v1.1.02018-05-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/91fdeb118c7be06d8cf55be249e311e54888bc3f4582b3c24589422e58a865c4?d=identicon)[PavlaQ](/maintainers/PavlaQ)

---

Top Contributors

[![zatorck](https://avatars.githubusercontent.com/u/11573475?v=4)](https://github.com/zatorck "zatorck (12 commits)")[![PavlaQ](https://avatars.githubusercontent.com/u/330935?v=4)](https://github.com/PavlaQ "PavlaQ (5 commits)")

### Embed Badge

![Health badge](/badges/pavlaq-przelewy24-bundle-fork/health.svg)

```
[![Health](https://phpackages.com/badges/pavlaq-przelewy24-bundle-fork/health.svg)](https://phpackages.com/packages/pavlaq-przelewy24-bundle-fork)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
