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

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

nepda/doctrine-encrypt
======================

Package encrypts and decrypts Doctrine fields through life cycle events.

v7.0.1(8y ago)116.4k3MITPHPPHP &gt;=7.1

Since Nov 14Pushed 8y ago1 watchersCompare

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

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

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

[](#doctrineencrypt)

[![Build Status](https://camo.githubusercontent.com/193823ba464bcac82dd449223566021c7be1ba5bf9153d748b7e46e3ec738d24/68747470733a2f2f7472617669732d63692e6f72672f6e657064612f646f637472696e652d656e63727970742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nepda/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

Tests
-----

[](#tests)

Tests currently run with PHP 7.1, 7.2

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

[](#installation)

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

```
{
    "require": {
        "nepda/doctrine-encrypt": "~7.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:

```
