PHPackages                             dizzy7/doctrine-dateinterval - 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. dizzy7/doctrine-dateinterval

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

dizzy7/doctrine-dateinterval
============================

Supports DateInterval in Doctrine DBAL and ORM.

1.0.0(13y ago)026MITPHPPHP &gt;=5.3.3

Since Feb 19Pushed 11y agoCompare

[ Source](https://github.com/dizzy7/php-doctrine-dateinterval)[ Packagist](https://packagist.org/packages/dizzy7/doctrine-dateinterval)[ Docs](http://herrera-io.github.com/php-doctrine-dateinterval)[ RSS](/packages/dizzy7-doctrine-dateinterval/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Doctrine DateInterval Type
==========================

[](#doctrine-dateinterval-type)

[![Build Status](https://camo.githubusercontent.com/2863ee3f17623a3d2db1bd198628b0671e8a5105b3a8274c83be7a9cf3970fb7/68747470733a2f2f7472617669732d63692e6f72672f686572726572612d696f2f7068702d646f637472696e652d64617465696e74657276616c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/herrera-io/php-doctrine-dateinterval)

Supports DateInterval in Doctrine DBAL and ORM.

Summary
-------

[](#summary)

The `DateInterval` library

- adds a `dateinterval` type to DBAL
- adds a `DATE_INTERVAL` DQL function to ORM

This is made possible by the [`DateInterval`](https://github.com/herrera-io/php-date-interval) library.

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

[](#installation)

Add it to your list of Composer dependencies:

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

Register it with Doctrine DBAL:

```
