qneyrat / sylius-hiboutik-plugin
Hiboutik sync plugin for Sylius.
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
Type:sylius-hiboutik-plugin
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-11-29 08:30:44 UTC
README
Plugin Skeleton
Skeleton for starting Sylius plugins.
Documentation
For a comprehensive guide on Sylius Plugins development please go to Sylius documentation, there you will find the Plugin Development Guide, that is full of examples.
Quickstart Installation
-
Run
composer create-project sylius/plugin-skeleton ProjectName
. -
From the plugin skeleton root directory, run the following commands:
$ (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)
To be able to setup a plugin's database, remember to configure you database credentials in tests/Application/.env
and tests/Application/.env.test
.
Usage
Running plugin tests
-
PHPUnit
$ vendor/bin/phpunit
-
PHPSpec
$ vendor/bin/phpspec run
-
Behat (non-JS scenarios)
$ vendor/bin/behat --tags="~@javascript"
-
Behat (JS scenarios)
-
Download Chromedriver
-
Download Selenium Standalone Server.
-
Run Selenium server with previously downloaded Chromedriver:
$ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone.jar
-
Run test application's webserver on
localhost:8080
:$ (cd tests/Application && bin/console server:run localhost:8080 -d public -e test)
-
Run Behat:
$ vendor/bin/behat --tags="@javascript"
-
Opening Sylius with your plugin
-
Using
test
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e test) $ (cd tests/Application && bin/console server:run -d public -e test)
-
Using
dev
environment:$ (cd tests/Application && bin/console sylius:fixtures:load -e dev) $ (cd tests/Application && bin/console server:run -d public -e dev)