PHPackages                             offchaindata/holiday-oracle-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. offchaindata/holiday-oracle-php

ActiveLibrary[API Development](/categories/api)

offchaindata/holiday-oracle-php
===============================

Client library to interact with the Holiday Oracle global holidays API

0.1(6y ago)05MITPHPCI failing

Since Apr 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/OffChainData/holiday-oracle-php)[ Packagist](https://packagist.org/packages/offchaindata/holiday-oracle-php)[ RSS](/packages/offchaindata-holiday-oracle-php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Holiday Oracle PHP client library
=================================

[](#holiday-oracle-php-client-library)

[![Build Status](https://camo.githubusercontent.com/f4c7e00cbabf55e36e391a4654ac2b9006e4ec5ecf01dce151adc9ec4efc0dc0/68747470733a2f2f7472617669732d63692e636f6d2f4f6666436861696e446174612f686f6c696461792d6f7261636c652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/OffChainData/holiday-oracle-php)[![License](https://camo.githubusercontent.com/074385baffd9efd4c6131221293ab22e6496cf9b8f0f4acffdc5210010a19da8/68747470733a2f2f686f6c696461796f7261636c652e696f2f696d616765732f6c6963656e73652e737667)](https://github.com/OffChainData/holiday-oracle-php/blob/master/LICENSE)

The Holiday Oracle PHP library provides convenient access to the global holidays API provided by [Off Chain Data](https://holidayoracle.io/docs/index.html) from your PHP applications.

Installation
------------

[](#installation)

Install with composer:

`composer require offchaindata/holiday-oracle-php`

Calling the API
---------------

[](#calling-the-api)

Note that all methods accept an optional array as the last parameter that can be used to pass optional parameters to the API. e.g.

```
public function holidays($country, $year, array $options = [])
```

First create an instance of the Holiday Oracle client object

```
