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.2 |
Sylius | ^1.12 |
Installation
-
Add the bundle and dependencies in your composer.json :
-
Create required config in
config/packages/gdpr.yaml
file: -
Create routing in
config/routes/gdpr.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 you are dealing with (e.g. 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
or use php attributes
#[AsController]
on your controller and#[Autowire(AnonymizeCustomerNotLoggedSinceType::class)]
in your constructor for$formsType
parameter - 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.12
symfony/property-info Version ^6.4