- Download AmbtaDoctrineEncryptBundle using composer
- Enable the database encryption bundle
- Configure the database encryption bundle
- php 5.4
- php-openssl
- doctrine/orm >= 2.5
- symfony/framework-bundle >= 2.0
AmbtaDoctrineEncryptBundle should be installed usin Composer:
{
"require": {
"ambta/doctrine-encrypt-bundle": "^2.5"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update ambta/doctrine-encrypt-bundle
Composer will install the bundle to your project's vendor/ambta
directory.
Enable the bundle in the Symfony2 kernel by adding it in your /app/AppKernel.php file:
public function registerBundles()
{
$bundles = array(
// ...
new Ambta\DoctrineEncryptBundle\AmbtaDoctrineEncryptBundle(),
);
}
All configuration value's are optional. On the following page you can find de configuration information.