- Download DoctrineEncryptBundle using composer
- Enable the database encryption bundle
- Configure the database encryption bundle
- PHP >=8.0
- Comes with package: paragonie/sodium_compat ^1.5
- Comes with package: Halite ^3.0
- doctrine/orm >= 2.0
- symfony/framework-bundle >= 2.0
DoctrineEncryptBundle should be installed using Composer:
{
"require": {
"michaeldegroot/doctrine-encrypt-bundle": "3.0.*"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update michaeldegroot/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 the configuration information.