PHPackages                             joel-depiltech/codeigniter-holidayapi - 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. joel-depiltech/codeigniter-holidayapi

ActiveCodeigniter-third-party[API Development](/categories/api)

joel-depiltech/codeigniter-holidayapi
=====================================

CodeIgniter third-party library deals with Holiday API based on official PHP library

1.1.0(8y ago)123MITPHPPHP &gt;=5.3.0

Since Dec 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/joel-depiltech/codeigniter-holidayapi)[ Packagist](https://packagist.org/packages/joel-depiltech/codeigniter-holidayapi)[ Docs](https://github.com/joel-depiltech/codeigniter-holidayapi)[ RSS](/packages/joel-depiltech-codeigniter-holidayapi/feed)WikiDiscussions master Synced 3d ago

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

CodeIgniter Holiday API
=======================

[](#codeigniter-holiday-api)

[![Latest Stable Version](https://camo.githubusercontent.com/42511febaaaf7ec8fee5bfa847481bd1ab81de6e1429cd791876c93942c1029e/68747470733a2f2f706f7365722e707567782e6f72672f6a6f656c2d646570696c746563682f636f646569676e697465722d686f6c696461796170692f762f737461626c652e737667)](https://packagist.org/packages/joel-depiltech/codeigniter-holidayapi)[![License](https://camo.githubusercontent.com/9dfc79f5532c962cf0e3104e09388babc8abfb6450da3a930d8563e1c890452c/68747470733a2f2f706f7365722e707567782e6f72672f6a6f656c2d646570696c746563682f636f646569676e697465722d686f6c696461796170692f6c6963656e7365)](https://packagist.org/packages/joel-depiltech/codeigniter-holidayapi)

[CodeIgniter](https://www.codeigniter.com) third-party library deals with [Holiday API](https://holidayapi.com) based on [official PHP library](https://github.com/joshtronic/php-holidayapi) .

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

[](#installation)

*Note that following steps assume that you have correctly installed Composer and configured CodeIgniter on your server.*

Please use [Composer](https://getcomposer.org) to install it and include it as a third-party [package](https://www.codeigniter.com/user_guide/libraries/loader.html#application-packages) in your CodeIgniter application.

`composer require joel-depiltech/codeigniter-holidayapi`

1. Make sure you already use Composer auto-loader in your config file (application/config/config.php)

```
$config['composer_autoload'] = TRUE; // or a custom path as 'vendor/autoload.php'
```

2. Include this **package** with Loader library

```
$this->load->add_package_path(APPPATH . 'third_party/holidayapi');
```

3. Include this **library** with Loader library

```
$this->load->library('HolidayAPI');
```

4. Configure your **api keys** in config file (config/holidayapi.php)

```
$config['holidayapi_test_api_key'] = '058f4506-caf0-4bdd-b52b-cbc98e20e02e';
$config['holidayapi_live_api_key'] = '*** Fill in your own Live API key ***';
```

Usage
-----

[](#usage)

### Simple call

[](#simple-call)

By default, fetch all holidays of this year for USA :

```
