PHPackages                             arturwwl/przelewy24-bundle - 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. arturwwl/przelewy24-bundle

ActiveSymfony-bundle

arturwwl/przelewy24-bundle
==========================

This is Symfony 3.3+ P24 Bundle.

v1.2.0(1y ago)076MITPHPPHP ^5.5.9 || ^7.0

Since Mar 10Pushed 1y agoCompare

[ Source](https://github.com/arturwwl/Przelewy24Bundle)[ Packagist](https://packagist.org/packages/arturwwl/przelewy24-bundle)[ RSS](/packages/arturwwl-przelewy24-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

Arturwwl Przelewy24 Bundle
==========================

[](#arturwwl-przelewy24-bundle)

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

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

[](#instalation)

```
composer require arturwwl/przelewy24-bundle

```

and then update your `AppKernel.php`:

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

Than add to your `routing.yml` file:

```
#app/config/routing.yml
arturwwl_przelewy24:
    resource: "@ArturwwlPrzelewy24Bundle/Resources/config/routing.xml"
```

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

```
#app/config/routing_dev.yml
arturwwl_przelewy24:
    resource: "@ArturwwlPrzelewy24Bundle/Resources/config/routing_dev.xml"
```

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

[](#requirements)

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

Config
------

[](#config)

Add to your config following lines:

```
#app/config/config.yml
arturwwl_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 Arturwwl\Przelewy24Bundle\Factory\ProcessFactory;
use Arturwwl\Przelewy24Bundle\Model\Payment;

// ...

class AppController extends Controller
{

    // ...

    public function processAction(ProcessFactory $processFactory)
    {
	    $order = // ... - You are creating your order here
        $merchantId = $order->getMerchantId();
        $crcKey = $order->getCrcKey();

        $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())
            ->setStatusUrl($this->generateUrl('status'))
            ->setReturnUrl($this->generateUrl('return', [], 0)); // use following syntax to generate absolute url

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

        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 succeeded payment

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

```
namespace AppBundle\EventListener\Przelewy24;

use Arturwwl\Przelewy24Bundle\Event\PaymentEventInterface;

class PaymentSuccessListener
{
    // ..

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

	// ..

    }
}
```

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

[](#developer-tools)

##### Testing connection

[](#testing-connection)

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

After that you have access to `arturwwl_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 `@ArturwwlPrzelewy24Bundle/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 `arturwwl_przelewy24_fake_success` to make bundle to trigger `przelewy24.event.payment_success` event.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~359 days

Recently: every ~450 days

Total

8

Last Release

471d ago

Major Versions

v0.0.1 → v1.1.02018-05-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/05c404296eca2321f0358ec38354409019951dd149cc4ccf791365f204c14e17?d=identicon)[arturwwl](/maintainers/arturwwl)

---

Top Contributors

[![zatorck](https://avatars.githubusercontent.com/u/11573475?v=4)](https://github.com/zatorck "zatorck (10 commits)")[![arturwwl](https://avatars.githubusercontent.com/u/32646237?v=4)](https://github.com/arturwwl "arturwwl (2 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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