DEPRECATED - Official PHP library for Holiday API https://holidayapi.com
This repository has been archived on 2025-06-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
2019-10-10 21:18:53 -05:00
src Whoops, borked the file name 2016-08-11 19:18:25 -05:00
.gitignore Initial commit 2016-08-08 23:53:21 -05:00
composer.json Quick and dirty 2016-08-10 22:47:31 -05:00
LICENSE Initial commit 2016-08-08 23:53:21 -05:00
README.md chore: add deprecation notice 2019-10-10 21:18:53 -05:00

This repository has moved to https://github.com/holidayapi/php-holidayapi

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