Official PHP library for Holiday API
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Whoops, borked the file name Aug 12, 2016
.gitignore Initial commit Aug 9, 2016
LICENSE Initial commit Aug 9, 2016
README.md Cleaned up spacing Aug 12, 2016
composer.json Quick and dirty Aug 11, 2016

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);