This is the documentation for version 3.0 which will be supported until TBD. Please consider upgrading your code to the latest stable version


System Requirements

Period requires PHP 5.5.9 but the latest stable version of PHP or HHVM is recommended.


Period is available on Packagist and can be installed using Composer.

$ composer require league/period

Going Solo

You can also use Period without using Composer by downloading the library and using any other PSR-4 compatible autoloader.

Starting with version 3.2. Period comes bundle with its own autoloader you can call as shown below:


require 'path/to/league/repo/autoload.php';


where path/to/league/repo represents the path where the library was extracted.