elcweb/doctrine-encrypt-bundle

Package encrypts and decrypts Doctrine fields through life cycle events.

v0.2.0 2020-07-07 17:38 UTC

This package is auto-updated.

Last update: 2024-11-08 03:40:42 UTC


README

Latest Stable Version Total Downloads

Installation

Step 1: Download using composer

{
    "require": {
        "51systems/doctrine-encrypt"         : "*",
        "elcweb/doctrine-encrypt-bundle"     : "dev-master"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update 51systems/doctrine-encrypt
$ php composer.phar update elcweb/doctrine-encrypt-bundle

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// config/bundles.php

return [
    // ...
    Elcweb\DoctrineEncryptBundle\ElcwebDoctrineEncryptBundle::class => ['all' => true],
];

Step 3: Set secret

# config/packages/doctrine_encryption.yaml
elcweb_doctrine_encrypt:
  secret_key: SOME_STRING

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE