{"id":37008512,"url":"https://github.com/joel-depiltech/codeigniter-holidayapi","last_synced_at":"2026-01-14T00:50:06.614Z","repository":{"id":57000740,"uuid":"115011559","full_name":"joel-depiltech/codeigniter-holidayapi","owner":"joel-depiltech","description":"CodeIgniter third-party library deals with Holiday API based an official PHP library","archived":false,"fork":false,"pushed_at":"2017-12-22T14:18:00.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T14:23:23.559Z","etag":null,"topics":["api","codeigniter","codeigniter-library","holiday","holiday-api","holidayapi","holidays"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joel-depiltech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-21T13:58:57.000Z","updated_at":"2017-12-23T07:38:59.000Z","dependencies_parsed_at":"2022-08-21T13:20:51.904Z","dependency_job_id":null,"html_url":"https://github.com/joel-depiltech/codeigniter-holidayapi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/joel-depiltech/codeigniter-holidayapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joel-depiltech%2Fcodeigniter-holidayapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joel-depiltech%2Fcodeigniter-holidayapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joel-depiltech%2Fcodeigniter-holidayapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joel-depiltech%2Fcodeigniter-holidayapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joel-depiltech","download_url":"https://codeload.github.com/joel-depiltech/codeigniter-holidayapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joel-depiltech%2Fcodeigniter-holidayapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","codeigniter","codeigniter-library","holiday","holiday-api","holidayapi","holidays"],"created_at":"2026-01-14T00:50:06.524Z","updated_at":"2026-01-14T00:50:06.597Z","avatar_url":"https://github.com/joel-depiltech.png","language":"PHP","readme":"# CodeIgniter Holiday API\n\n[![Latest Stable Version](https://poser.pugx.org/joel-depiltech/codeigniter-holidayapi/v/stable.svg)](https://packagist.org/packages/joel-depiltech/codeigniter-holidayapi)\n[![License](https://poser.pugx.org/joel-depiltech/codeigniter-holidayapi/license)](https://packagist.org/packages/joel-depiltech/codeigniter-holidayapi)\n\n\n[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) .\n\n## Installation\n\n_Note that following steps assume that you have correctly installed Composer and configured CodeIgniter on your server._\n\nPlease 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.\n\n`composer require joel-depiltech/codeigniter-holidayapi`\n\n1. Make sure you already use Composer auto-loader in your config file (application/config/config.php)\n\n```php\n$config['composer_autoload'] = TRUE; // or a custom path as 'vendor/autoload.php'\n```\n\n2. Include this **package** with Loader library\n\n```php\n$this-\u003eload-\u003eadd_package_path(APPPATH . 'third_party/holidayapi');\n```\n\n3. Include this **library** with Loader library\n\n```php\n$this-\u003eload-\u003elibrary('HolidayAPI');\n```\n\n4. Configure your **api keys** in config file (config/holidayapi.php)\n\n```php\n$config['holidayapi_test_api_key'] = '058f4506-caf0-4bdd-b52b-cbc98e20e02e';\n$config['holidayapi_live_api_key'] = '*** Fill in your own Live API key ***';\n```\n\n\n## Usage\n\n### Simple call\n\nBy default, fetch all holidays of this year for USA :\n\n```php\n\u003c?php\n$this-\u003eload-\u003elibrary('HolidayAPI');\n$holidays = $this-\u003eholidayapi-\u003eholidays();\nprint_r($holidays);\n```\n\n\n### Complete call\n\nA example to fetch all upcoming holidays for France from Christmas to end of 2018 with a specific API key :\n\n```php\n\u003c?php\n$this-\u003eload-\u003elibrary('HolidayAPI', array('holidayapi_live_api_key' =\u003e '** An other API key **'));\n$holidays = $this-\u003eholidayapi-\u003eholidays('FR', 2018, 12, 25, FALSE, TRUE);\nprint_r($holidays);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoel-depiltech%2Fcodeigniter-holidayapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoel-depiltech%2Fcodeigniter-holidayapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoel-depiltech%2Fcodeigniter-holidayapi/lists"}