2017 © Pedro Peláez
 

library doctrine-encrypt

Package encrypts and decrypts Doctrine fields through life cycle events.

image

51systems/doctrine-encrypt

Package encrypts and decrypts Doctrine fields through life cycle events.

  • Sunday, March 12, 2017
  • by 51systems
  • Repository
  • 3 Watchers
  • 10 Stars
  • 9,218 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 121 Forks
  • 0 Open issues
  • 11 Versions
  • 12 % Grown

The README.md

DoctrineEncrypt Build Status

Package encrypts and decrypts Doctrine fields through life cycle events. This version of the Doctrine Encrypt package distinguishes itself with the following features:, (*1)

  • Superior Annotation parsing & caching using Doctrine's built in libraries for superior performance
  • Totally transparent field encryption: the value will only be encrypted in the database, never in the value
  • Unit testing

Integrations

The package supports the following integrations:, (*2)

  • Laravel

Upgrading

If you're upgrading from a previous version you can find some help with that in the upgrading guide., (*3)

Installation

composer require 51systems/doctrine-encrypt

Configuration

Laravel

Add the subscriber in the boot method of a service provider., (*4)

<?php

$encrypter = $this->app->make(\Illuminate\Contracts\Encryption\Encrypter::class);

$subscriber = new DoctrineEncryptSubscriber(
    new \Doctrine\Common\Annotations\AnnotationReader,
    new \DoctrineEncrypt\Encryptors\LaravelEncryptor($encrypter)
);

$eventManager = $em->getEventManager();
$eventManager->addEventSubscriber($subscriber);

Usage

<?php

namespace Your\Namespace;

use Doctrine\ORM\Mapping as ORM;

use DoctrineEncrypt\Configuration\Encrypted;

/**
 * @ORM\Entity
 */
class Entity
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     * @ORM\Column(type="integer")
     * @var int
     */
    private $id;

    /**
     * @ORM\Column(type="text")
     * @Encrypted
     * @var string
     */
    private $secretData;
}

License

This bundle is under the MIT license., (*5)

Versions

I'm using Semantic Versioning like described here., (*6)

The Versions

12/03 2017

dev-master

9999999-dev

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

12/03 2017

v6.0.0

6.0.0.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

11/03 2016

dev-nepda-master

dev-nepda-master

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

11/03 2016

v5.0.1

5.0.1.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

05/02 2016

v5.0.0

5.0.0.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

30/05 2014

v4.0.0

4.0.0.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Victor Melnik

doctrine encrypt aes256 decrypt

26/06 2013

v3.0.1

3.0.1.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

26/06 2013

v3.0.0

3.0.0.0

Package encrypts and decrypts Doctrine fields through life cycle events.

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

05/01 2013

2.0.1

2.0.1.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

17/11 2012

2.0.0

2.0.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt

14/11 2012

1.0.0

1.0.0.0

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

  Sources   Download

MIT

The Requires

 

by Victor Melnik

doctrine encrypt aes256 decrypt