Download the PHP package calendarific/php-calendarific without Composer
On this page you can find all versions of the php package calendarific/php-calendarific. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download calendarific/php-calendarific
More information about calendarific/php-calendarific
Files in calendarific/php-calendarific
Package php-calendarific
Short Description PHP library for Calendarific.com
License MIT
Homepage https://calendarific.com
Informations about the package php-calendarific
Calendarific
Official PHP library for the Calendarific API.
Installation
This package can be installed via Composer:
It requires PHP >= 7.0.0.
Usage
The following guide assumes that you've imported the class Calendarific\Calendarific
into your namespace. There's a helper command available which makes querying the API very easy, and is explained below:
The below define's the parameter's for the Calendarific::make()
helper command:
Parameter | Type | Required | Description |
---|---|---|---|
$key |
string |
Yes | API Key from My Account |
$country |
string |
Yes | Country, as listed from ISO 3166-1 alpha-2 |
$year |
int |
Yes | Four digit year representation, i.e. 2019 |
$month |
int or null |
No | Single digit month representation, i.e. 1 |
$location |
string or null |
No | Location within above Country, as listed from ISO 3166-1 alpha-2 |
$types |
array |
No | Array of types to filter using. An empty array will show all types |
Testing
Unit tests can be run within the package, however, it utilises Docker & Docker Compose:
License
calendarific/calendarific is licensed under the MIT license. See the LICENSE file for more details.