rdohms / period

A time range immutable value object

Home Page:http://period.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Period

Author Latest Version Software License
Build Status Coverage Status Quality Score Total Downloads

This class is based on Resolving Feature Envy in the Domain by Mathias Verraes and helps resolve many recurrent issues around Date range selection and usage.

This package is compliant with PSR-2, and PSR-4.

System Requirements

You need PHP >= 5.3.0 to use Period but the latest stable version of PHP is recommended.

Install

Install Period using Composer.

{
    "require": {
        "league/period": "2.*"
    }
}

Going Solo

You can also use League\Period without using Composer by downloading the library and using a PSR-4 compatible autoloader.

Documentation

League\Period is fully documentation. Contribute to this documentation in the gh-pages branch.

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

About

A time range immutable value object

http://period.thephpleague.com

License:MIT License