whatwedo / sylius-datatrans-payment-plugin
为您的sylius电子商务项目提供Datatrans支付集成。
v1.0.1
2024-07-30 15:09 UTC
Requires
- php: >=7.3
- sylius/sylius: >=1.7.5
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.1
- 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.1
- phpstan/phpstan: ^1.10
- phpstan/phpstan-doctrine: 1.3.*
- phpstan/phpstan-webmozart-assert: 1.1.*
- phpunit/phpunit: ^8.5
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^4.1.1
- symfony/browser-kit: ^4.4|^5.0|^6.0
- symfony/debug-bundle: ^4.4|^5.0|^6.0
- symfony/dotenv: ^4.4|^5.0|^6.0
- symfony/intl: ^4.4|^5.0|^6.0
- symfony/web-profiler-bundle: ^4.4|^5.0|^6.0
- symfony/web-server-bundle: ^4.4|^5.0|^6.0
- whatwedo/php-coding-standard: ^1.2
This package is auto-updated.
Last update: 2024-08-31 08:16:14 UTC
README
dde up
make exec
make install
然后在您的sylius项目中将其用作依赖项。
---- sylius样板 ----
插件骨架
开始Sylius插件的骨架。
文档
有关Sylius插件开发的全面指南,请访问Sylius文档,在那里您将找到插件开发指南,其中包含大量示例。
快速安装
-
运行
composer create-project sylius/plugin-skeleton ProjectName
。 -
从插件骨架根目录,运行以下命令
$ (cd tests/Application && yarn install) $ (cd tests/Application && yarn build) $ (cd tests/Application && bin/console assets:install public -e test) $ (cd tests/Application && bin/console doctrine:database:create -e test) $ (cd tests/Application && bin/console doctrine:schema:create -e test)
为了能够设置插件数据库,请记住在tests/Application/.env
和tests/Application/.env.test
中配置您的数据库凭据。
用法
运行插件测试
-
PHPUnit
$ vendor/bin/phpunit
-
PHPSpec
$ vendor/bin/phpspec run
-
Behat(非JS场景)
$ vendor/bin/behat --tags="~@javascript"
-
Behat(JS场景)
-
使用之前下载的Chromedriver运行Selenium服务器
$ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
-
在
localhost:8080
上运行测试应用程序的web服务器$ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
-
运行Behat
$ vendor/bin/behat --tags="@javascript"
使用您的插件打开Sylius
-
使用
test
环境$ (cd tests/Application && bin/console sylius:fixtures:load -e test) $ (cd tests/Application && bin/console server:run -d public -e test)
-
使用
dev
环境$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d public -e dev)