定制 twint-ag/twint-shopware-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

twint-ag/twint-shopware-plugin

最新稳定版本:1.1.6

Composer 安装命令:

composer require twint-ag/twint-shopware-plugin

包简介

TWINT payment plugin for Shopware 6

README 文档

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

Rector

vendor/bin/rector process src --dry-run

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.

统计信息

  • 总下载量: 153
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-06