StaffimDateTime for Symfony. Bundle presents Timestampable interface/trait for models, Serializer handler, Doctrine MongoDB type handlers for Staffim\DateTime classes.
The preferred way to install this bundle is to rely on Composer.
Just check on Packagist 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:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Staffim\DateTimeBundle\StaffimDateTimeBundle(),
);
}