PHPackages                             org\_heigl/daterange - 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. org\_heigl/daterange

ActiveLibrary

org\_heigl/daterange
====================

Provides a way to display dateranges

1.2.0(11y ago)4973↓50%[4 PRs](https://github.com/heiglandreas/org.heigl.daterange/pulls)MITPHPPHP &gt;=5.5

Since Mar 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/heiglandreas/org.heigl.daterange)[ Packagist](https://packagist.org/packages/org_heigl/daterange)[ Docs](http://github.com/heiglandreas/daterange)[ RSS](/packages/org-heigl-daterange/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (11)Used By (0)

org.heigl.DateRange
===================

[](#orgheigldaterange)

This small library tries to ease printing of date-ranges.

[![Build Status](https://camo.githubusercontent.com/139b987d89a2d809d51c07b2ea0388a5aa364ccddf1a510c20e007bc09c1bff0/68747470733a2f2f7472617669732d63692e6f72672f686569676c616e64726561732f6f72672e686569676c2e6461746572616e67652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/heiglandreas/org.heigl.daterange)[![Code Climate](https://camo.githubusercontent.com/dbb18d7dc0cbd915a97d220e3e16233251ed8bb73970350de2c30efe4f113c67/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686569676c616e64726561732f6f72672e686569676c2e6461746572616e67652f6261646765732f6770612e737667)](https://codeclimate.com/github/heiglandreas/org.heigl.daterange)[![Test Coverage](https://camo.githubusercontent.com/e58b5a75e871b9c6c5f48290b1768b4020732f36c3805eaf11404670c67036a4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686569676c616e64726561732f6f72672e686569676c2e6461746572616e67652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/heiglandreas/org.heigl.daterange)[![Coverage Status](https://camo.githubusercontent.com/093b1dda8a942624bbdbd088fe65a7974cbb5555a440a29c76e7f180379d6115/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f686569676c616e64726561732f6f72672e686569676c2e6461746572616e67652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/heiglandreas/org.heigl.daterange?branch=master)

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

[](#installation)

Installation is easy via composer. Simply type this in your terminal to add the DateRange-Library to your `composer.conf`-file:

```
composer require org_heigl/daterange

```

Usage
-----

[](#usage)

You can then use the DateRange library by creating a DateRange-instance, setting a format and a separator and then simply calling `getDateRange()`with the start-date and the end date as parameters.

Simple example:

```
