nathand / sylius-lyranetwork-plugin
This plugin enables you to setup the Lyra Collect payment gateway on your Sylius website.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.0
- sylius/mailer-bundle: ^1.8 || ^2.0@beta
- sylius/sylius: ^2.0
- symfony/webpack-encore-bundle: ^2.2
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- phpspec/phpspec: ^7.2
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^1.8.1
- phpstan/phpstan-doctrine: 1.3.37
- phpstan/phpstan-strict-rules: ^1.3.0
- phpstan/phpstan-webmozart-assert: ^1.2.0
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sylius-labs/coding-standard: ^4.2
- symfony/browser-kit: ^5.4 || ^6.0
- symfony/debug-bundle: ^5.4 || ^6.0
- symfony/dotenv: ^5.4 || ^6.0
- symfony/flex: ^2.2.2
- symfony/intl: ^5.4 || ^6.0
- symfony/web-profiler-bundle: ^5.4 || ^6.0
- vimeo/psalm: 5.9.0
Conflicts
- symfony/framework-bundle: 6.2.8
This package is not auto-updated.
Last update: 2025-07-25 07:36:52 UTC
README
Lyra Collect for Sylius is an open source plugin that links e-commerce websites based on Sylius to Lyra Collect secure payment gateway developed by Lyra Network.
Installation & Upgrade
With Composer
- Require the plugin with composer using the following command:
composer require lyranetwork/sylius-lyranetwork-plugin dev-lyra-v2
- Add the following line in bundles.php file located in
[sylius-root]/config/
:
Lyranetwork\Lyra\LyranetworkLyraPlugin::class => ['all' => true],
- Add Lyra routes in routes.yaml file located in
[sylius-root]/config/
:
sylius_lyra: resource: "@LyranetworkLyraPlugin/Resources/config/routing.yaml"
- Add Lyra config in _sylius.yaml file located in
[sylius-root]/config/packages
:
imports:
[...]
- { resource: "@LyranetworkLyraPlugin/Resources/config/config.yaml" }
- Dump the autoload cache using the following command:
composer dump-autoload
- Empty the cache with the following command:
php bin/console cache:clear
The plugin should be now available in the list of payment methods that you can create.
With plugin zip file
- Unzip module in your Sylius root folder.
- Add in file
[sylius-root]/composer.json
, in autoload psr-4 the following line:
"Lyranetwork\\Lyra\\": "LyranetworkLyra/src/"
- Add the following line in bundles.php file located in
[sylius-root]/config/
:
Lyranetwork\Lyra\LyranetworkLyraPlugin::class => ['all' => true],
- Add Lyra routes in routes.yaml file located in
[sylius-root]/config/
:
sylius_lyra: resource: "@LyranetworkLyraPlugin/Resources/config/routing.yaml"
- Add Lyra config in _sylius.yaml file located in
[sylius-root]/config/packages
:
imports:
[...]
- { resource: "@LyranetworkLyraPlugin/Resources/config/config.yaml" }
- Dump the autoload cache using the following command:
composer dump-autoload
- Open command line in Sylius root directory, and run the following commands to extract the translations for the plugin:
php bin/console translation:extract en LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract fr LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract es LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract de LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract pt LyranetworkLyraPlugin --dump-messages
php bin/console translation:extract br LyranetworkLyraPlugin --dump-messages
- Empty the cache with the following command:
php bin/console cache:clear
The plugin should be now available in the list of payment methods that you can create.
Configuration
In the Sylius administration interface:
- Go to
Configuration > Payment methods
. - Click on
Create
button on the top right of the page to display the list of available payment methods. - Choose
Payment by Lyra Collect
to add and configure it. - You can now enter your Lyra Collect credentials and configure your payment method.
- Don't forget to give your payment method a code, to set the name in the language sections at the bottom and to save by clicking the
Create
button.
Uninstallation
With composer
composer remove lyranetwork/sylius-lyranetwork-plugin
With module zip file
- Delete LyranetworkLyra folder in your Sylius root folder
- Remove in file
sylius/composer.json
, in autoload psr-4 the line:
"Lyranetwork\\Lyra\\": "LyranetworkLyra/src/"
Remove and revert changes
- Remove the following line in bundles.php file located in
[sylius-root]/config/
:
Lyranetwork\Lyra\LyranetworkLyraPlugin::class => ['all' => true],
- Remove Lyra routes in routes.yaml file located in
[sylius-root]/config/
sylius_lyra: resource: "@LyranetworkLyraPlugin/Resources/config/routing.yaml"
- Remove Lyra config in _sylius.yaml file located in
[sylius-root]/config/packages
:
imports:
[...]
- { resource: "@LyranetworkLyraPlugin/Resources/config/config.yaml" }
- Open command line in Sylius root directory, and run the following commands:
composer dump-autoload
php bin/console cache:clear
License
Each Lyra Collect payment module source file included in this distribution is licensed under the The MIT License (MIT).
Please see LICENSE.txt for the full text of the MIT license. It is also available through the world-wide-web at this URL: https://opensource.org/licenses/mit-license.html.