twint-ag/twint-shopware-plugin
Composer 安装命令:
composer require twint-ag/twint-shopware-plugin
包简介
TWINT payment plugin for Shopware 6
README 文档
README
Development environment
Go to infra/demo65 or infra/demo66 and run docker compose up -d
Access the container with the following command:
docker exec -it sw66 bash
Use sw65 if you are using the demo65 environment.
Install dependencies for the plugin:
cd /var/www/html/custom/plugins/TwintPayment
composer install
Install shopware dependencies:
cd /var/www/html
composer install
Running phpstan
From inside the container, run the following command:
./bin/phpstan.sh
Checking coding standards
From inside the container, run the following command:
vendor/bin/ecs
Fixing coding standards violations:
vendor/bin/ecs --fix
Rector
vendor/bin/rector process src --dry-run
Running unit tests
Prepare test database
For the first time running unit test, we need create test database:
Assume that we will use shopware_test database for unit tests, and you can use other database names as well.
Update .env.local to use
DATABASE_URL=mysql://root:root@127.0.0.1:3306/shopware_test
then run
bin/console system:install --basic-setup
Shopware will run migration scripts and create database tables for test database.
Prepare environment file
Unit test will use environment variable in infra/demo66/.env.test for test (similarly for infra/demo65/.env.test).
Review the DATABASE_URL in there and make sure that matches with test database you prepared in the previous step.
Run tests
From inside the container, run the following command once:
ln -s /var/www/plugin /var/www/html/custom/plugins/TwintPayment
Then run unit tests:
cd /var/www/html/custom/plugins/TwintPayment
./bin/phpunit.sh
Release management
Tag a new release, let's say version 1.2.3:
bin/release.sh 1.2.3
CI will then sync with the public GitHub repository.
twint-ag/twint-shopware-plugin 适用场景与选型建议
twint-ag/twint-shopware-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 193 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 08 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「checkout」 「express checkout」 「switzerland」 「shopware」 「shopware6」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 twint-ag/twint-shopware-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 twint-ag/twint-shopware-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 twint-ag/twint-shopware-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel >=5.6 integration for the PHP Credit Cards package that allows to perform operations on debit and credit cards like format, validate brand, number and Luhn algorithm.
Rich payment solutions for Yii framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
ibrand laravel express
Adds a 'checkout' to a SilverStripe site which links to an Estimate and adds the ability to setup and pay
A flexible and awesome shipment tracking library for several carriers like DHL eCommerce, USPS, YanWen Express, Epacket, E包裹, E特快, 国际EMS, 快递100
Rich payment solutions for Laravel framework. Paypal, payex, authorize.net, be2bill, omnipay, recurring paymens, instant notifications and many more
统计信息
- 总下载量: 193
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-06