PHPackages                             paygreen/sylius-paygreen-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. [Payment Processing](/categories/payments)
4. /
5. paygreen/sylius-paygreen-plugin

ActiveSylius-plugin[Payment Processing](/categories/payments)

paygreen/sylius-paygreen-plugin
===============================

Paygreen plugin for Sylius.

1.2.2(3y ago)34.2k2MITPHPPHP ^7.3 || ^8.0

Since Sep 15Pushed 3y ago4 watchersCompare

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

READMEChangelogDependencies (35)Versions (12)Used By (0)

 [ ![paygreen logo](https://camo.githubusercontent.com/62639e8746460293e14fe834a0e1e3ee5822a6093bdc5e8b0fd8444c67a8b9bd/68747470733a2f2f706179677265656e2e6769746875622e696f2f696d616765732f656d61696c2f6c6f676f2f706179677265656e2f626173652e706e67) ](https://paygreen.io/)

 [ ![sylius logo](https://camo.githubusercontent.com/1567208cc7c8ec53cf6e2af4f54449a9bb3ab0dee7916998de4e3ce9b7f79015/68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67) ](https://sylius.com)

Sylius payment module with [Paygreen](https://paygreen.io/)
===========================================================

[](#sylius-payment-module-with-paygreen)

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

[](#installation)

Require the plugin :

```
composer require paygreen/sylius-paygreen-plugin
```

1. Your `ProductVariant` entity needs to implement de `MealVoucherAwareInterface` and use the `MealVoucherAwareTrait`.
2. Your `Order` entity needs to implement de `MealVoucherableInterface` and use the `MealVoucherableTrait`.
3. You need to run a diff of your doctrine's migrations: `bin/console doctrine:migrations:diff`. Don't forget to run it! (`bin/console doctrine:migrations:migrate`)
4. Copy the template (we update the Product and ProductVariant forms): ```
    mkdir -p templates/bundles/SyliusAdminBundle
    cp -Rv vendor/paygreen/sylius-paygreen-plugin/src/Resources/views/SyliusAdminBundle/ templates/bundles/

    ```

Configuration
-------------

[](#configuration)

[![Gateway configuration](https://github.com/PayGreen/sylius-paygreen-plugin/raw/master/doc/gateway_configuration.png?raw=true)](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/gateway_configuration.png?raw=true)

Connect your Paygreen account with your public key and your private key.

> To activate the in site payment interface, the In Site module must be activated via your PayGreen back office. Moreover, you must be in HTTPS.

In the `.env` file, you have to configure the `PAYGREEN_API_SERVER` (PRODUCTION or SANDBOX) depending on your customer account.

```
PAYGREEN_API_SERVER=PRODUCTION

```

Cookbook
--------

[](#cookbook)

- [How to display the amount payable in meal voucher in cart?](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/how-to-display-the-amount-payable-in-meal-voucher-in-cart.md)
- [How to display if the product is payable in meal voucher or not?](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/how-to-display-if-the-product-is-payable-in-meal-voucher-or-not.md)
- [How to make delivery payable via meal voucher?](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/how-to-make-delivery-payable-via-meal-voucher.md)
- [How to hide the meal ticket payment if it is not available for this cart?](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/how-to-hide-the-meal-voucher-payment-method-if-it-is-not-available-for-this-cart.md)
- [How to customize "insite" display mode template?](https://github.com/PayGreen/sylius-paygreen-plugin/blob/master/doc/how-to-customize-insite-display-mode.md)

Contribution
------------

[](#contribution)

### Installation:

[](#installation-1)

```
$ composer install
$ (cd tests/Application && yarn install)
$ (cd tests/Application && yarn build)
$ (cd tests/Application && APP_ENV=test bin/console assets:install public)

$ (cd tests/Application && APP_ENV=test bin/console doctrine:database:create)
$ (cd tests/Application && APP_ENV=test bin/console doctrine:schema:create)
$ (cd tests/Application && APP_ENV=test bin/console sylius:fixtures:load)
```

To be able to setup a plugin's database, remember to configure you database credentials in `tests/Application/.env` and `tests/Application/.env.test`.

### Start local server

[](#start-local-server)

```
$ (cd tests/Application && APP_ENV=test php -S localhost:8080 -t public)
```

### Running plugin tests

[](#running-plugin-tests)

- PHPSpec

    ```
    $ composer phpspec
    ```
- Behat

    ```
    $ composer behat
    ```
- All tests (phpspec &amp; behat)

    ```
    $ composer test
    ```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~30 days

Recently: every ~55 days

Total

11

Last Release

1395d ago

Major Versions

0.0.2 → 1.0.02021-09-20

PHP version history (2 changes)0.0.1PHP ^7.3

1.0.1PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/701dd03913e5f97c63b4f6554061025f629d4b27e8d5d6d78c1bc40252a87fa5?d=identicon)[Paygreen](/maintainers/Paygreen)

---

Top Contributors

[![alexispti](https://avatars.githubusercontent.com/u/92716662?v=4)](https://github.com/alexispti "alexispti (45 commits)")[![pielrx](https://avatars.githubusercontent.com/u/90769264?v=4)](https://github.com/pielrx "pielrx (16 commits)")[![MaximeLemolt](https://avatars.githubusercontent.com/u/57484207?v=4)](https://github.com/MaximeLemolt "MaximeLemolt (7 commits)")[![alexispe](https://avatars.githubusercontent.com/u/17900114?v=4)](https://github.com/alexispe "alexispe (1 commits)")

---

Tags

syliussylius-pluginpaygreenpaygreen-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/invoicing-plugin

Invoicing plugin for Sylius.

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

PayPal plugin for Sylius.

451.4M4](/packages/sylius-paypal-plugin)[flux-se/sylius-payum-stripe-plugin

Payum Stripe gateways plugin for Sylius.

61342.2k](/packages/flux-se-sylius-payum-stripe-plugin)[bitbag/sylius-adyen-plugin

BitBag Adyen plug-in for Sylius.

1249.9k](/packages/bitbag-sylius-adyen-plugin)[bitbag/przelewy24-plugin

Przelewy24 payment plugin for Sylius applications.

1931.7k](/packages/bitbag-przelewy24-plugin)

PHPackages © 2026

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