twint-ag / twint-shopware-plugin
TWINT payment plugin for Shopware 6
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:shopware-platform-plugin
Requires
- ext-openssl: *
- chillerlan/php-qrcode: 4.3.4
- twint-ag/sdk: ^1.4.0
Requires (Dev)
- dg/bypass-finals: ^1.8
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
- rector/rector: ^1.0
- shopware/core: >=6.5.0.0
- slevomat/coding-standard: ^8.15
- symfony/browser-kit: *
- symplify/easy-coding-standard: ^12.1
- dev-latest
- 1.0.0-RC30
- 1.0.0-RC29
- 1.0.0-RC28
- 1.0.0-RC27
- 1.0.0-RC26
- 1.0.0-RC25
- 1.0.0-RC24
- 1.0.0-RC23
- 1.0.0-RC22
- 1.0.0-RC21
- 1.0.0-RC20
- 1.0.0-RC19
- 1.0.0-RC18
- 1.0.0-RC17
- 1.0.0-RC16
- 1.0.0-RC15
- 1.0.0-RC14
- 1.0.0-RC13
- 1.0.0-RC12
- 1.0.0-RC11
- 1.0.0-RC10
- 1.0.0-RC9
- 1.0.0-RC8
- 1.0.0-RC7
- 1.0.0-RC6
- 1.0.0-RC5
- 1.0.0-RC4
- 1.0.0-RC3
- 1.0.0-RC1
This package is auto-updated.
Last update: 2024-11-20 12:14:15 UTC
README
Development environment
Go to infra/demo65 or infra/demo66 and run docker compose up -d
Access the container with the following command:
docker exec -it sw66 bash
Use sw65
if you are using the demo65 environment.
Install dependencies for the plugin:
cd /var/www/html/custom/plugins/TwintPayment
composer install
Install shopware dependencies:
cd /var/www/html
composer install
Running phpstan
From inside the container, run the following command:
./bin/phpstan.sh
Checking coding standards
From inside the container, run the following command:
vendor/bin/ecs
Fixing coding standards violations:
vendor/bin/ecs --fix
Running unit tests
Prepare test database
For the first time running unit test, we need create test database:
Assume that we will use shopware_test
database for unit tests, and you can use other database names as well.
Update .env.local
to use
DATABASE_URL=mysql://root:root@127.0.0.1:3306/shopware_test
then run
bin/console system:install --basic-setup
Shopware will run migration scripts and create database tables for test database.
Prepare environment file
Unit test will use environment variable in infra/demo66/.env.test
for test (similarly for infra/demo65/.env.test
).
Review the DATABASE_URL
in there and make sure that matches with test database you prepared in the previous step.
Run tests
From inside the container, run the following command once:
ln -s /var/www/plugin /var/www/html/custom/plugins/TwintPayment
Then run unit tests:
cd /var/www/html/custom/plugins/TwintPayment
./bin/phpunit.sh
Release management
Tag a new release, let's say version 1.2.3:
bin/release.sh 1.2.3
CI will then sync with the public GitHub repository.