PHPackages                             webgriffe/sylius-pagolight-plugin - 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. webgriffe/sylius-pagolight-plugin

ActiveSylius-plugin

webgriffe/sylius-pagolight-plugin
=================================

Sylius plugin for HeyLight payment gateway (ex PagoLight BNPL and PagoLight PRO)

v3.0.1(1mo ago)03.7k[1 issues](https://github.com/webgriffe/SyliusHeyLightPlugin/issues)MITPHPPHP ^8.2CI failing

Since Feb 15Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/webgriffe/SyliusHeyLightPlugin)[ Packagist](https://packagist.org/packages/webgriffe/sylius-pagolight-plugin)[ RSS](/packages/webgriffe-sylius-pagolight-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (72)Versions (13)Used By (0)

 [    ![Sylius Logo.](https://camo.githubusercontent.com/ea9dddc934264aa7ec01cf3202c500f3d8b04448bce2571bdc74230efddda88f/68747470733a2f2f6d656469612e73796c6975732e636f6d2f73796c6975732d6c6f676f2d3830302e706e67)  ](https://sylius.com)

Sylius [HeyLight](https://heylight.com/) Plugin
===============================================

[](#sylius-heylight-plugin)

Sylius plugin for HeyLight payment gateway (ex PagoLight BNPL and PagoLight PRO).

Installation
------------

[](#installation)

1. Run:

    ```
    composer require webgriffe/sylius-heylight-plugin
    ```
2. Add `Webgriffe\SyliusHeylightPlugin\WebgriffeSyliusHeylightPlugin::class => ['all' => true]` to your `config/bundles.php`.

    Normally, the plugin is automatically added to the `config/bundles.php` file by the `composer require` command. If it is not, you have to add it manually.
3. Create a new file config/packages/webgriffe\_sylius\_heylight\_plugin.yaml:

    ```
    imports:
        - { resource: "@WebgriffeSyliusHeylightPlugin/config/config.php" }
    ```
4. Import the routes needed for cancelling the payments. Add the following to your config/routes.yaml file:

    ```
    webgriffe_sylius_heylight_plugin_shop:
        resource: "@WebgriffeSyliusHeylightPlugin/config/routes/shop.php"
        prefix: /{_locale}
        requirements:
            _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$

    webgriffe_sylius_heylight_plugin_ajax:
        resource: "@WebgriffeSyliusHeylightPlugin/config/routes/shop_ajax.php"

    sylius_shop_payum_cancel:
        resource: "@PayumBundle/Resources/config/routing/cancel.xml"
    ```

    **NB:** The file shop\_routing needs to be after the prefix \_locale, so that messages can be displayed in the right language. You should also include the cancel routes from the Payum bundle if you do not have it already!
5. Run:

    ```
    php bin/console sylius:install:assets
    ```

Usage
-----

[](#usage)

Access to the admin panel and go to the `Payment methods` section. Create a new payment method and select `HeyLight BNPL`or `HeyLight Financing` as gateway. Then, configure the payment method with the required parameters.

Contributing
------------

[](#contributing)

For a comprehensive guide on Sylius Plugins development please go to Sylius documentation, there you will find the [Plugin Development Guide](https://docs.sylius.com/plugins-development-guide/how-to-create-a-plugin-for-sylius) - it's a great place to start.

For more information about the **Test Application** included in the skeleton, please refer to the [Sylius documentation](https://docs.sylius.com/plugins-development-guide/test-application).

### Traditional

[](#traditional)

1. From the plugin skeleton root directory, run the following commands:

    ```
    (cd vendor/sylius/test-application && yarn install)
    (cd vendor/sylius/test-application && yarn build)
    vendor/bin/console assets:install

    vendor/bin/console doctrine:database:create
    vendor/bin/console doctrine:migrations:migrate -n
    # Optionally load data fixtures
    vendor/bin/console sylius:fixtures:load -n
    ```

To be able to set up a plugin's database, remember to configure your database credentials in `tests/TestApplication/.env` and `tests/TestApplication/.env.test`.

2. Run your local server:

    ```
    symfony server:ca:install
    symfony server:start -d
    ```
3. Open your browser and navigate to `https://localhost:8000`.

### Docker

[](#docker)

1. Execute `make init` to initialize the container and install the dependencies.
2. Execute `make database-init` to create the database and run migrations.
3. (Optional) Execute `make load-fixtures` to load the fixtures.
4. Your app is available at `http://localhost`.

Usage
-----

[](#usage-1)

### Running plugin tests

[](#running-plugin-tests)

- PHPUnit

    ```
    vendor/bin/phpunit
    ```
- Behat (non-JS scenarios)

    ```
    vendor/bin/behat --strict --tags="~@javascript&&~@mink:chromedriver"
    ```
- Behat (JS scenarios)

    1. [Install Symfony CLI command](https://symfony.com/download).
    2. Start Headless Chrome:

    ```
    google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1
    ```

    3. Install SSL certificates (only once needed) and run test application's webserver on `127.0.0.1:8080`:

    ```
    symfony server:ca:install
    APP_ENV=test symfony server:start --port=8080 --daemon
    ```

    4. Run Behat:

    ```
    vendor/bin/behat --strict --tags="@javascript,@mink:chromedriver"
    ```
- Static Analysis

    - PHPStan

        ```
        vendor/bin/phpstan analyse -c phpstan.neon -l max src/
        ```
    - Psalm

        ```
        vendor/bin/psalm
        ```
- Coding Standard

    ```
    vendor/bin/ecs check
    ```

### Opening Sylius with your plugin

[](#opening-sylius-with-your-plugin)

- Using `test` environment:

    ```
    APP_ENV=test vendor/bin/console vendor/bin/console sylius:fixtures:load -n
    APP_ENV=test symfony server:start -d
    ```
- Using `dev` environment:

    ```
    vendor/bin/console vendor/bin/console sylius:fixtures:load -n
    symfony server:start -d
    ```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance95

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~69 days

Recently: every ~147 days

Total

12

Last Release

53d ago

Major Versions

v0.2.5 → v1.0.02024-08-05

v1.0.0 → v2.0.02025-02-04

v2.0.0 → v3.0.02026-01-22

PHP version history (2 changes)v0.1.0-alphaPHP ^8.1

v0.2.0-alphaPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/eca104631fd7f6aff6d399ca16458c4d9814770756af0ecca22ffe2b1c5704d3?d=identicon)[mmenozzi](/maintainers/mmenozzi)

![](https://www.gravatar.com/avatar/2925ed774ce338117149f19b784c82de12f06dfe01d2f5ef407c62fcf8743eb3?d=identicon)[lruozzi9](/maintainers/lruozzi9)

---

Top Contributors

[![lruozzi9](https://avatars.githubusercontent.com/u/26346480?v=4)](https://github.com/lruozzi9 "lruozzi9 (98 commits)")

---

Tags

syliussylius-pluginpagolightheylight

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webgriffe-sylius-pagolight-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/webgriffe-sylius-pagolight-plugin/health.svg)](https://phpackages.com/packages/webgriffe-sylius-pagolight-plugin)
```

###  Alternatives

[bitbag/cms-plugin

CMS plugin for Sylius applications.

2461.1M5](/packages/bitbag-cms-plugin)[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.7M13](/packages/sylius-refund-plugin)[sylius/paypal-plugin

PayPal plugin for Sylius.

451.4M4](/packages/sylius-paypal-plugin)[sylius/invoicing-plugin

Invoicing plugin for Sylius.

901.0M2](/packages/sylius-invoicing-plugin)[stefandoorn/sitemap-plugin

Sitemap Plugin for Sylius

851.0M](/packages/stefandoorn-sitemap-plugin)[monsieurbiz/sylius-rich-editor-plugin

A Rich Editor plugin for Sylius.

75380.8k6](/packages/monsieurbiz-sylius-rich-editor-plugin)

PHPackages © 2026

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