2017 © Pedro Peláez
 

library doctrine-extensions

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

image

mediamonks/doctrine-extensions

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

  • Wednesday, March 14, 2018
  • by mediamonks
  • Repository
  • 5 Watchers
  • 14 Stars
  • 5,578 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

Build Status Code Coverage Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

MediaMonks Doctrine2 behavioral extensions

These extensions add more functionality to Doctrine2., (*2)

Breaking changes!
All Zend transformers are now renamed to Laminas.
YAML support has been removed, (*3)

New features!
Attribute support, (*4)

Transformable

This extension uses transform and reverseTransform methods to convert data to and from the database. This can for example be used to encrypt a field when it's sent to the database and it will be decrypted when it is retrieved from the database., (*5)

The field's value will only be transformed when the value changed which also makes it possible to implement only a transform function for one way transformations like hashing., (*6)

Currently, these adapters are provided in order of recommendation:, (*7)

  • HaliteSymmetricTransformer - Encrypt/decrypts the value
  • DefuseCryptoEncryptKeyTransformer - Encrypt/decrypts the value
  • PhpHashTransformer - Hashes the value
  • PhpHmacTransformer - Hashes the value with a key
  • LaminasCryptHashTransformer - Hashes the value
  • LaminasCryptHmacTransformer - Hashes the value with a key
  • LaminasCryptSymmetricTransformer - Encrypts/decrypts the value using openssl (Mcrypt is deprecated), with aes as default algorithm

You can easily create your own transformers by implementing the TransformableInterface, (*8)

System Requirements

You need:, (*9)

  • PHP >= 8.1

To use the library., (*10)

Install

Install this package by using Composer., (*11)

$ composer require mediamonks/doctrine-extensions

Security

If you discover any security related issues, please email devmonk@mediamonks.com instead of using the issue tracker., (*12)

Documentation

Please refer to the files in the /doc folder., (*13)

Credits

This package was inspired by/uses code from gedmo/doctrine-extensions., (*14)

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

14/03 2018

dev-master

9999999-dev https://www.mediamonks.com/

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Bloembergen

extensions doctrine encrypt decrypt hmac transform crypt hash hashable transformable encryptable cryptable

14/03 2018

1.2.1

1.2.1.0 https://www.mediamonks.com/

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Bloembergen

extensions doctrine encrypt decrypt hmac transform crypt hash hashable transformable encryptable cryptable

29/11 2017

1.2.0

1.2.0.0 https://www.mediamonks.com/

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Bloembergen

extensions doctrine encrypt decrypt hmac transform crypt hash hashable transformable encryptable cryptable

28/11 2016

v1.1.0

1.1.0.0 https://www.mediamonks.com/

Doctrine2 behavioral extensions which allows to transform (encrypt, decrypt, hash) your data automatically

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Bloembergen

extensions doctrine encrypt decrypt hmac transform crypt hash hashable transformable encryptable cryptable

08/03 2016

v1.0.0

1.0.0.0 https://www.mediamonks.com/

Doctrine2 behavioral extensions

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Bloembergen

extensions doctrine encrypt decrypt hmac transform crypt hash hashable transformable encryptable cryptable