Download the PHP package synolia/sylius-gdpr-plugin without Composer
On this page you can find all versions of the php package synolia/sylius-gdpr-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sylius-gdpr-plugin
Sylius GDPR Plugin
Features
- Anonymize customer with the GDPR section in the admin customer show.
-
Export customer data with the GDPR section in the admin customer show.
Click to see the anonymization configuration.
Click to see the export data configuration.
-
Anonymize any entity with command for example :
Use --help to get more informations
Requirements
Version | |
---|---|
PHP | ^8.0 |
Sylius | ^1.10 |
Installation
-
Add the bundle and dependencies in your composer.json :
-
Import required config in your
config/packages/_sylius.yaml
file: -
Import routing in your
config/routes.yaml
file: -
Process translations
- Clear cache
Add anonymization configuration
Example of configuration
value
can be null, an array, an int, a string and an expression language
Example of configuration with dynamic value
Note:
your expression language must starts with
@=
to be evaluated properlyvariable
object
is the current entity your are dealing with (eg. in that caseSylius\Component\Core\Model\Customer
)
Add form in advanced actions page
There's two steps to add your custom form into the page:
-
Override the controller service by setting the link of your FormType in the $formsType variable
- Then create your form processor by implementing Synolia\SyliusGDPRPlugin\Processor\AnonymizerProcessor\AdvancedActionsFormDataProcessorInterface
There a form processor example
Events
- Synolia\SyliusGDPRPlugin\Event\BeforeAnonymize
- Synolia\SyliusGDPRPlugin\Event\AfterAnonymize
- Synolia\SyliusGDPRPlugin\Event\BeforeCustomerAnonymize
- Synolia\SyliusGDPRPlugin\Event\AfterCustomerAnonymize
- Synolia\SyliusGDPRPlugin\Event\BeforeExportCustomerData
Development
See How to contribute.
License
This library is under the EUPL-1.2 license.
Credits
Developed by Synolia.
All versions of sylius-gdpr-plugin with dependencies
php-http/message-factory Version ^1.1
phpdocumentor/reflection-docblock Version ^5.3
sylius/sylius Version ^1.10
symfony/property-info Version ^5.4|^6.0