The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

The API

Upgrading Guide

This is the documentation for the upcoming version 4.0. This is a work in progress

Installation

System Requirements

Period requires PHP 7.1.3 but the latest stable version of PHP.

Composer

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:

<?php

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

var_dump(Period::createFromDay('TODAY'));

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