superbox / sylius-data-portability-plugin
Simple data portability plugin for Sylius.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:sylius-plugin
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: 2025-06-08 09:34:33 UTC
README
Data Portability Plugin
Out-of-the-box Plugin Solution for GDPR Compliance.
Installation
- Run `composer require superbox/sylius-data-portability-plugin
Usage
This is an out-of-the-box basic plugin for Sylius to comply with the EU GDPR in regards to data portability. Users can navigate to "your-sylius-website/data-portability" to access the plugins functionality.
On entering their e-mail address, the plugin will gather all related data to that e-mail in the existing database and send it as an e-mail attachment to the supplied address.
The following data is gathered and send out:
Tables:
sylius_customer;
sylius_address;
sylius_shop_user;
sylius_order;
sylius_address_log_entry;
sylius_payment;
sylius_product_review;
Fields:
'email', 'firstName', 'lastName', 'birthday', 'gender', 'phoneNumber', 'company', 'countryCode', 'street', 'city', 'postcode', 'username', 'title', 'rating', 'comment',
Running plugin tests
-
Behat (non-JS scenarios)
$ bin/behat --tags="~@javascript"
-
Behat (JS scenarios)
-
Download Chromedriver
-
Run Selenium server with previously downloaded Chromedriver:
$ bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver
-
Run test application's webserver on
localhost:8080
:$ (cd tests/Application && bin/console server:run 127.0.0.1:8080 -d web -e test)
-
Run Behat:
$ bin/behat --tags="@javascript"
-