Download the PHP package brandoriented/doctrine-encryption-bundle without Composer
On this page you can find all versions of the php package brandoriented/doctrine-encryption-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brandoriented/doctrine-encryption-bundle
More information about brandoriented/doctrine-encryption-bundle
Files in brandoriented/doctrine-encryption-bundle
Package doctrine-encryption-bundle
Short Description Doctrine encryption bundle for Symfony to aid with GDPR and general field encryption
License MIT
Homepage https://github.com/BrandOriented/doctrine-encryption-bundle
Informations about the package doctrine-encryption-bundle
Doctrine Encryption Bundle
With GDPR becoming business critical here's a bundle that handles the data encryption layer.
Installation
Configuration
Basic
Basic configuration will take advantage of the encryption library provided
Full
Usage
Using the encryption service in controller
Entity Annotation
The above will auto encrypt on prePersist
and preUpdate
Twig
Design decision
You'll notice there is no postLoad event to convert back to decrypted. Experience with doctrine is that as the entity is changed it adds it to the queue to be flushed. Say if you have an account with 1000 users each user would be decrypted meaning re saved.
How to add a custom Encryptor
Create a class that extends . Then register as mentioned in the above config.
Tests
Yes there a loads of lovely unit tests :)
Roadmap
- [ ] Form inputs
- [ ] Command line util
- [ ] Travis integration
All versions of doctrine-encryption-bundle with dependencies
symfony/symfony Version 3.*
doctrine/common Version 2.*
doctrine/dbal Version 2.*
doctrine/orm Version 2.*
twig/twig Version 1.*