qneyrat / sylius-hiboutik-plugin
Sylius 的 Hiboutik 同步插件。
dev-master / 1.6.x-dev
2020-11-01 17:22 UTC
Requires
- php: ^7.3
- ext-json: *
- doctrine/common: ^2.12
- fig/http-message-util: ^1.1
- moneyphp/money: ^3.3
- phpdocumentor/reflection-docblock: ^5.1
- sylius/sylius: ^1.7.6
- symfony/http-client: ^5.0
- symfony/property-access: ^4.4
- symfony/property-info: ^5.0
- symfony/serializer: ^5.0
- symfony/serializer-pack: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.0
- phpstan/phpstan-doctrine: ^0.12.0
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: ^0.12.0
- phpunit/phpunit: ^8.0
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^3.1
- symfony/browser-kit: ^4.4
- symfony/debug-bundle: ^4.4
- symfony/dotenv: ^4.4
- symfony/intl: ^4.4
- symfony/panther: ^0.7.1
- symfony/web-profiler-bundle: ^4.4
- symfony/web-server-bundle: ^4.4
This package is auto-updated.
Last update: 2024-09-29 08:13:14 UTC
README
插件骨架
用于启动 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
-
使用先前下载的 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)