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

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

lucascardoso-egsys/doctrine-encrypt
===================================

Package encrypts and decrypts Doctrine fields through life cycle events.

1.2(6y ago)05MITPHPPHP &gt;=7.1CI failing

Since Aug 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lucascardoso-egsys/doctrine-encrypt)[ Packagist](https://packagist.org/packages/lucascardoso-egsys/doctrine-encrypt)[ RSS](/packages/lucascardoso-egsys-doctrine-encrypt/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

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

[](#doctrineencrypt)

Este repositório foi baseado em:
--------------------------------

[](#este-repositório-foi-baseado-em)

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

Instalação
----------

[](#instalação)

Adicionar no compose.json:

```
"repositories": [
        {
            "type": "vcs",
            "url":  "git@github.com:egsys-dev/doctrine-encrypt.git"
        }
]

```

```
composer require egsys-dev/doctrine-encrypt:dev-master

```

### Manually

[](#manually)

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

```
