mirror of
https://github.com/holidayapi/holidayapi-php.git
synced 2025-06-21 04:16:31 +00:00
Official PHP library for Holiday API
https://holidayapi.com
src | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
README.md |
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);