superbox / sylius-data-portability-plugin
适用于 Sylius 的简单数据可移植插件。
dev-master / 1.2.x-dev
2018-11-30 10:09 UTC
Requires
- php: ^7.1
- ext-json: ^1.6
- sylius/sylius: ~1.2.3
- symfony/symfony: ^3.4|^4.1
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/context-service-extension: ^1.2
- friends-of-behat/cross-container-extension: ^1.1
- friends-of-behat/service-container-extension: ^1.0
- friends-of-behat/symfony-extension: ^1.2.1
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^4.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sylius-labs/coding-standard: ^2.0
This package is not auto-updated.
Last update: 2024-09-29 05:45:02 UTC
README
数据可移植插件
符合欧盟 GDPR 数据可移植规定的现成插件解决方案。
安装
- 运行 `composer require superbox/sylius-data-portability-plugin`
使用
这是一个适用于 Sylius 的现成基本插件,用于遵守欧盟 GDPR 的数据可移植性规定。用户可以访问 "your-sylius-website/data-portability" 来使用插件功能。
当用户输入他们的电子邮件地址时,插件将收集现有数据库中与该电子邮件相关的所有数据,并将其作为电子邮件附件发送到提供的地址。
收集并发送以下数据
表
sylius_customer;
sylius_address;
sylius_shop_user;
sylius_order;
sylius_address_log_entry;
sylius_payment;
sylius_product_review;
字段
'email', 'firstName', 'lastName', 'birthday', 'gender', 'phoneNumber', 'company', 'countryCode', 'street', 'city', 'postcode', 'username', 'title', 'rating', 'comment',
运行插件测试
-
Behat(非 JavaScript 场景)
$ bin/behat --tags="~@javascript"
-
Behat(JavaScript 场景)
-
下载 Chromedriver
-
使用先前下载的 Chromedriver 运行 Selenium 服务器
$ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
-
在
localhost:8080
上运行测试应用程序的 web 服务器$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
-
运行 Behat
$ bin/behat --tags="@javascript"
-