PHPackages                             staffim/datetime-bundle - 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. staffim/datetime-bundle

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

staffim/datetime-bundle
=======================

Bundle for Symfony2 with improvements for DateTime

2.1(7y ago)0416MITPHPPHP ^7.0.0

Since Mar 24Pushed 7y ago4 watchersCompare

[ Source](https://github.com/staffim/StaffimDateTimeBundle)[ Packagist](https://packagist.org/packages/staffim/datetime-bundle)[ RSS](/packages/staffim-datetime-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

StaffimDateTimeBundle
=====================

[](#staffimdatetimebundle)

[![Build Status](https://camo.githubusercontent.com/34f406edc323ef29943f593fd36bde5ce701aca99d4376f2d2a3b4e42be58823/68747470733a2f2f7472617669732d63692e6f72672f7374616666696d2f5374616666696d4461746554696d6542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/staffim/StaffimDateTimeBundle) [![SensioLabsInsight](https://camo.githubusercontent.com/1055e5ccc9ccfddd69e1c57ced2ae71cbfc16ddcca4f1d5b7920ddb95037c40a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63303264353734312d386438312d346330332d626531642d3764323236306263386165652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/c02d5741-8d81-4c03-be1d-7d2260bc8aee)

[StaffimDateTime](https://github.com/staffim/DateTime) for Symfony. Bundle presents Timestampable interface/trait for models, [Serializer](http://jmsyst.com/libs/serializer) handler, Doctrine MongoDB type handlers for Staffim\\DateTime classes.

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

[](#installation)

### Install StaffimDateTimeBundle

[](#install-staffimdatetimebundle)

The preferred way to install this bundle is to rely on [Composer](http://getcomposer.org). Just check on [Packagist](http://packagist.org/packages/staffim/datetime-bundle) the version you want to install and add it to your `composer.json`:

```
{
    "require": {
        // ...
        "staffim/datetime-bundle": "1.0"
    }
}
```

Enable the bundle in the kernel:

```
