staffim / datetime-bundle
Bundle for Symfony2 with improvements for DateTime
Installs: 414
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:bundle
Requires
- php: ^7.0.0
- staffim/datetime: ^2.0
Requires (Dev)
- doctrine/common: ^2.8
- phpunit/phpunit: ~4.8
- symfony/framework-bundle: ~2.6|~3.0
- symfony/security-bundle: ~2.6|~3.0
Suggests
- doctrine/mongodb-odm-bundle: Allows storing dates with milliseconds in MongoDB
- jms/serializer-bundle: Provides handler for DateTime
This package is auto-updated.
Last update: 2024-11-05 18:44:41 UTC
README
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(), ); }