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.
You need PHP >= 5.3.0 to use Period
but the latest stable version of PHP is recommended.
Install Period
using Composer.
{
"require": {
"league/period": "2.*"
}
}
You can also use League\Period
without using Composer by downloading the library and using a PSR-4 compatible autoloader.
League\Period
is fully documentation. Contribute to this documentation in the gh-pages branch.
$ phpunit
Please see CONTRIBUTING for details.