PHPackages                             kamilkrzywda/dateinterval-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. kamilkrzywda/dateinterval-bundle

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

kamilkrzywda/dateinterval-bundle
================================

A Symfony bundle for the DateInterval library for Doctrine.

00PHP

Since Feb 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kamilkrzywda/php-symfony-dateinterval)[ Packagist](https://packagist.org/packages/kamilkrzywda/dateinterval-bundle)[ RSS](/packages/kamilkrzywda-dateinterval-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DateInterval Bundle
===================

[](#dateinterval-bundle)

[![Build Status](https://camo.githubusercontent.com/2fdc7762c111beabb58fecc89224fdebdc1bf234d3b747075e18f279fb8efb6b/68747470733a2f2f7472617669732d63692e6f72672f686572726572612d696f2f7068702d73796d666f6e792d64617465696e74657276616c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/herrera-io/php-symfony-dateinterval)

A Symfony bundle for the DateInterval library for Doctrine.

Summary
-------

[](#summary)

The bundle will automatically

- register the `dateinterval` Doctrine mapping type
- add the `DATE_INTERVAL` DQL function

to the default entity manager (`doctrine.orm.entity_manager`).

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

[](#installation)

Add it to your list of Composer dependencies:

```
$ composer require herrera-io/dateinterval-bundle=1.*
```

Add it to your `app/AppKernel.php` file:

```
