waaz / payline-plugin
Payline payment plugin for Sylius
Installs: 65
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^7.1 || ^8.0
- sylius/sylius: >=1.4 <1.12
Requires (Dev)
- behat/behat: ^3.5 || ^3.8
- behat/mink: ^1.7 || ^1.8
- behat/mink-browserkit-driver: ^1.3 || ^1.4
- behat/mink-extension: ^2.2 || ^2.3
- behat/mink-selenium2-driver: ^1.3 || ^1.4
- friends-of-behat/page-object-extension: ^0.3 || ^0.6
- friends-of-behat/service-container-extension: ^1.0 || ^2.0
- friends-of-behat/suite-settings-extension: ^1.0 || ^2.0
- friends-of-behat/symfony-extension: ^1.0 || ^2.0
- friends-of-behat/variadic-extension: ^1.0 || ^2.0
- phpspec/phpspec: ^7.0 || ^7.1
- phpstan/phpstan-doctrine: ^1.5
- phpstan/phpstan-webmozart-assert: ^1.2
- phpunit/phpunit: ^7.5 || ^8.0 || ^9.0
- rector/rector: ^0.13.0 || ^0.15.0
- se/selenium-server-standalone: ^3.141
- sylius-labs/coding-standard: ^4.0 || ^5.0
- symfony/browser-kit: ^4.2 || ^4.4 || ^5.0
- symfony/debug-bundle: ^4.2 || ^4.4 || ^5.0
- symfony/dotenv: ^4.2 || ^4.4 || ^5.0
- symfony/intl: ^4.2 || ^4.4 || ^5.0
- symfony/web-profiler-bundle: ^4.2 || ^4.4 || ^5.0
This package is not auto-updated.
Last update: 2024-12-17 10:51:09 UTC
README
Plugin Skeleton
Skeleton for starting Sylius plugins.
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)