PHPackages                             orkestra/common - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. orkestra/common

ActiveLibrary[Database &amp; ORM](/categories/database)

orkestra/common
===============

Provides common functionality useful for Doctrine 2 based projects

1.0.3(9y ago)11.4k1[3 issues](https://github.com/orkestra/orkestra-common/issues)4MITPHPPHP &gt;=5.3.3

Since Dec 31Pushed 8y ago2 watchersCompare

[ Source](https://github.com/orkestra/orkestra-common)[ Packagist](https://packagist.org/packages/orkestra/common)[ RSS](/packages/orkestra-common/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (4)

Orkestra Common
===============

[](#orkestra-common)

[![Build Status](https://camo.githubusercontent.com/73af3bb95cf68bc05b020ec813c07fff2e84aba3c16dbd724c4631284ebf669f/68747470733a2f2f7472617669732d63692e6f72672f6f726b65737472612f6f726b65737472612d636f6d6d6f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/orkestra/orkestra-common)

Provides useful functionality for any Doctrine 2 based project including:

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

Installation
------------

[](#installation)

The easiest way to add orkestra-common to your project is using composer.

Add orkestra-common to your `composer.json` file:

```
{
    "require": {
        "orkestra/common": "dev-master"
    }
}
```

Then run `composer install` or `composer update`.

Configuration
-------------

[](#configuration)

Each feature provided by common requires a bit of set up.

### Dates and Times

[](#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.

```
# /path/to/your/bootstrap.php
