lyranetwork/sylius-lyranetwork-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lyranetwork/sylius-lyranetwork-plugin

Composer 安装命令:

composer require lyranetwork/sylius-lyranetwork-plugin

包简介

This plugin enables you to setup the Lyra Collect payment gateway on your Sylius website.

README 文档

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-v3
  • 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.

lyranetwork/sylius-lyranetwork-plugin 适用场景与选型建议

lyranetwork/sylius-lyranetwork-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.61k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 06 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「sylius」 「sylius-plugin」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 lyranetwork/sylius-lyranetwork-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 lyranetwork/sylius-lyranetwork-plugin 我们能提供哪些服务?
定制开发 / 二次开发

基于 lyranetwork/sylius-lyranetwork-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 17.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-12