Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.5 KB

installation.md

File metadata and controls

54 lines (39 loc) · 1.5 KB

Installation

  1. Download DoctrineEncryptBundle using composer
  2. Enable the database encryption bundle
  3. Configure the database encryption bundle

Requirements

Step 1: Download DoctrineEncryptBundle using composer

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.

Step 2: Enable the bundle

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(),
    );
}

Step 3: Set your configuration

All configuration value's are optional. On the following page you can find the configuration information.