PHPackages                             rodrigonull/doctrine-encrypt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rodrigonull/doctrine-encrypt

ActiveLibrary[Database &amp; ORM](/categories/database)

rodrigonull/doctrine-encrypt
============================

Package encrypts and decrypts Doctrine fields through life cycle events.

v5.0.1(10y ago)090MITPHPPHP &gt;=5.3.2

Since Nov 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rodrigonull/doctrine-encrypt)[ Packagist](https://packagist.org/packages/rodrigonull/doctrine-encrypt)[ RSS](/packages/rodrigonull-doctrine-encrypt/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

DoctrineEncrypt
===============

[](#doctrineencrypt)

Package encrypts and decrypts Doctrine fields through life cycle events. This version of the Doctrine Encrypt package distinguishes itself with the following features:

- Superior Annotation parsing &amp; caching using Doctrine's built in libraries for superior performance
- Totally transparent field encryption: the value will only be encrypted in the database, never in the value
- Unit testing

Installation
------------

[](#installation)

Add `rodrigonull/doctrine-encrypt` to your Composer manifest.

```
{
    "require": {
        "rodrigonull/doctrine-encrypt": "dev-master"
    }
}
```

Configuration
-------------

[](#configuration)

### Manually

[](#manually)

Add the event subscriber to your entity manager's event manager. Assuming `$em` is your configured entity manager:

```
