PHPackages                             vtlfokin/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. vtlfokin/doctrine-encrypt

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

vtlfokin/doctrine-encrypt
=========================

Package encrypts and decrypts Doctrine fields through life cycle events.

v6.0.0(9y ago)11.8kMITPHPPHP ^7.0

Since Nov 14Pushed 8y agoCompare

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

READMEChangelogDependencies (3)Versions (13)Used By (0)

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

[](#doctrineencrypt)

[![Build Status](https://camo.githubusercontent.com/08998c33615efda27b47c71b32d1e247651b349b150e4d3c50596f59f78f4877/68747470733a2f2f7472617669732d63692e6f72672f353173797374656d732f646f637472696e652d656e63727970742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/51systems/doctrine-encrypt)

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 `vtlfokin/doctrine-encrypt` to your Composer manifest.

```
{
    "require": {
        "vtlfokin/doctrine-encrypt": "~5.0"
    }
}
```

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

[](#configuration)

### Using ZF2

[](#using-zf2)

Check out the doctrine-encrypt-module at

### Manually

[](#manually)

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

```
