whatwedo / sylius-datatrans-payment-plugin
Datatrans payment integration for your sylius e-commerce project.
Installs: 2 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 0
Open Issues: 0
Type:sylius-plugin
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-10-31 00:21:01 UTC
README
dde up
make exec
make install
And then use it in your sylius project as dependency.
---- sylius boilerplate ----
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)