staffim/datetime-bundle

Bundle for Symfony2 with improvements for DateTime

2.1 2018-05-22 08:41 UTC

This package is auto-updated.

Last update: 2020-08-05 09:45:58 UTC


README

Build Status SensioLabsInsight

StaffimDateTime for Symfony. Bundle presents Timestampable interface/trait for models, Serializer handler, Doctrine MongoDB type handlers for Staffim\DateTime classes.

Installation

Install StaffimDateTimeBundle

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(),
    );
}