2017 © Pedro Peláez
 

library common

Provides common functionality useful for Doctrine 2 based projects

image

orkestra/common

Provides common functionality useful for Doctrine 2 based projects

  • Thursday, October 26, 2017
  • by tyler-sommer
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,039 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Orkestra Common

Build Status, (*1)

Provides useful functionality for any Doctrine 2 based project including:, (*2)

  • Transparent user/server timezone conversion
  • Encrypted string fields
  • Enumerations

Installation

The easiest way to add orkestra-common to your project is using composer., (*3)

Add orkestra-common to your composer.json file:, (*4)

``` json { "require": { "orkestra/common": "dev-master" } }, (*5)


Then run `composer install` or `composer update`. Configuration ------------- Each feature provided by common requires a bit of set up. ### Dates and Times Orkestra's custom DateTime implementation allows for easier conversion between server and user time, without the need for a full-blown localization or internationalization implementation. ```php # /path/to/your/bootstrap.php <?php use Doctrine\DBAL\Types\Type; // DateTime types Type::overrideType('datetime', 'Orkestra\Common\DbalType\DateTimeType'); Type::overrideType('date', 'Orkestra\Common\DbalType\DateType');

Encrypted string fields

The encrypted_string field type transparently encrypts and decrypts data when persisting and hydrating entities., (*6)

Enumerations

Enumerations are not supported by PHP nor Doctrine 2 out of the box. Common provides a base class for your own custom enumeration implementations. Each enumeration requires the enumeration itself and a corresponding DbalType class to integrate the enumeration with Doctrine 2., (*7)

The Versions

26/10 2017

dev-master

9999999-dev

Provides common functionality useful for Doctrine 2 based projects

  Sources   Download

MIT

The Requires

 

The Development Requires

10/03 2017

1.0.3

1.0.3.0

Provides common functionality useful for Doctrine 2 based projects

  Sources   Download

MIT

The Requires

 

19/08 2014

1.0.2

1.0.2.0

Provides common functionality useful for Doctrine 2 based projects

  Sources   Download

MIT

The Requires

 

23/01 2013

1.0.1

1.0.1.0

Provides common functionality useful for Doctrine 2 based projects

  Sources   Download

MIT

The Requires

 

31/12 2012

1.0.0

1.0.0.0

Provides common functionality useful for Doctrine 2 based projects

  Sources   Download

MIT

The Requires