tebru/doctrine-encryption-bundle

Adds an encryption type for Doctrine entities

v0.2.0 2015-07-18 00:08 UTC

This package is auto-updated.

Last update: 2024-11-24 11:38:23 UTC


README

Utilizes tebru/aes-encryption and adds a Doctrine type that automatically encrypts and decrypts values in the database.

Installation

composer require tebru/doctrine-encryption-bundle

Add to AppKernel

new Tebru\DoctrineEncryptionBundle\DoctrineEncryptionBundle(),

Usage

Set the column annotation type to encrypted on your entity property

@ORM\Column(type="encrypted")