joshtronic / php-holidayapi
Official PHP library for Holiday API
Installs: 21 422
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- satooshi/php-coveralls: ~1.0
This package is auto-updated.
Last update: 2019-10-11 02:21:15 UTC
README
The PHP package has also been renamed from joshtronic/php-holidayapi
to holidayapi/holidayapi-php
This repository has been archived.
php-holidayapi
Official PHP library for Holiday API
Installation
composer require "joshtronic/php-holidayapi:dev-master"
Usage
$hapi = new HolidayAPI\v1('_YOUR_API_KEY_'); $parameters = array( // Required 'country' => 'US', 'year' => 2016, // Optional // 'month' => 7, // 'day' => 4, // 'previous' => true, // 'upcoming' => true, // 'public' => true, // 'pretty' => true, ); $response = $hapi->holidays($parameters);