{"id":15635816,"url":"https://github.com/westy92/holiday-event-api-php","last_synced_at":"2026-02-05T22:03:34.542Z","repository":{"id":65143502,"uuid":"583156963","full_name":"westy92/holiday-event-api-php","owner":"westy92","description":"The Official Holiday and Event API for PHP","archived":false,"fork":false,"pushed_at":"2024-12-09T15:23:38.000Z","size":234,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T17:34:33.238Z","etag":null,"topics":["accurate","api","best","calendar","celebrate","checkiday","date","description","event","federal","free","holiday-api","holiday-calculation","holidayapi","holidays-api","national","observe","php","popular","trusted"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/westy92/holiday-event-api","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/westy92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["westy92"]}},"created_at":"2022-12-28T23:58:56.000Z","updated_at":"2024-09-09T23:56:22.000Z","dependencies_parsed_at":"2023-12-05T00:24:55.072Z","dependency_job_id":"6921b042-0ebc-44ec-95b3-7a5f8adbfabc","html_url":"https://github.com/westy92/holiday-event-api-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/westy92/holiday-event-api-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/westy92","download_url":"https://codeload.github.com/westy92/holiday-event-api-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/westy92%2Fholiday-event-api-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29135941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T21:59:57.939Z","status":"ssl_error","status_checked_at":"2026-02-05T21:59:57.628Z","response_time":65,"last_error":"SSL_read: 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":["accurate","api","best","calendar","celebrate","checkiday","date","description","event","federal","free","holiday-api","holiday-calculation","holidayapi","holidays-api","national","observe","php","popular","trusted"],"created_at":"2024-10-03T11:01:04.882Z","updated_at":"2026-02-05T22:03:34.519Z","avatar_url":"https://github.com/westy92.png","language":"PHP","funding_links":["https://github.com/sponsors/westy92"],"categories":[],"sub_categories":[],"readme":"# The Official Holiday and Event API for PHP\n\n[![Packagist Version](https://img.shields.io/packagist/v/westy92/holiday-event-api)](https://packagist.org/packages/westy92/holiday-event-api)\n[![Packagist PHP Version](https://img.shields.io/packagist/dependency-v/westy92/holiday-event-api/php)](https://php.net/)\n[![Build Status](https://github.com/westy92/holiday-event-api-php/actions/workflows/ci.yml/badge.svg)](https://github.com/westy92/holiday-event-api-php/actions)\n[![Code Coverage](https://codecov.io/gh/westy92/holiday-event-api-php/branch/main/graph/badge.svg)](https://codecov.io/gh/westy92/holiday-event-api-php)\n[![Type Coverage](https://shepherd.dev/github/westy92/holiday-event-api-php/coverage.svg)](https://shepherd.dev/github/westy92/holiday-event-api-php)\n[![Funding Status](https://img.shields.io/github/sponsors/westy92)](https://github.com/sponsors/westy92)\n\nIndustry-leading Holiday and Event API for PHP. Over 5,000 holidays and thousands of descriptions. Trusted by the World’s leading companies. Built by developers for developers since 2011.\n\n## Supported PHP Versions\n\nThe latest version of the the Holiday and Event API is compatible with all currently-supported PHP [releases](https://endoflife.date/php).\n\n## Authentication\n\nAccess to the Holiday and Event API requires an API Key. You can get for one for FREE [here](https://apilayer.com/marketplace/checkiday-api#pricing), no credit card required! Note that free plans are limited. To access more data and have more requests, a paid plan is required.\n\n## Installation\n\nThe recommended way to install the Holiday and Event API is through [Composer](https://getcomposer.org/).\n\n```\ncomposer require westy92/holiday-event-api\n```\n\n## Example\n\n```php\ntry {\n    // Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing\n    $client = new Westy92\\HolidayEventApi\\Client('\u003cyour API key\u003e');\n\n    // Get Events for a given Date\n    $events = $client-\u003egetEvents(\n        // These parameters are the defaults but can be specified:\n        // date: 'today',\n        // timezone: 'America/Chicago',\n        // adult: false,\n    );\n\n    $event = $events-\u003eevents[0];\n    echo \"Today is {$event-\u003ename}! Find more information at: {$event-\u003eurl}.\" . PHP_EOL;\n    echo \"Rate limit remaining: {$events-\u003erateLimit?-\u003eremainingMonth}/{$events-\u003erateLimit?-\u003elimitMonth} (month).\" . PHP_EOL;\n\n    // Get Event Information\n    $eventInfo = $client-\u003egetEventInfo(\n        id: $event-\u003eid,\n        // These parameters can be specified to calculate the range of eventInfo-\u003eEvent-\u003eOccurrences\n        // start: 2020,\n        // end: 2030,\n    );\n\n    $hashtags = implode(', ', $eventInfo-\u003eevent-\u003ehashtags);\n    echo \"The Event's hashtags are {$hashtags}.\" . PHP_EOL;\n\n    // Search for Events\n    $query = \"zucchini\";\n    $search = $client-\u003esearch(\n        query: $query,\n        // These parameters are the defaults but can be specified:\n        // adult: false,\n    );\n\n    $count = count($search-\u003eevents);\n    echo \"Found {$count} events, including '{$search-\u003eevents[0]-\u003ename}', that match the query '{$query}'.\" . PHP_EOL;\n} catch (\\Exception $e) {\n    echo $e;\n}\n```\n\n## License\n\nThe Holiday and Event API is made available under the MIT License (MIT). Please see the [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesty92%2Fholiday-event-api-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesty92%2Fholiday-event-api-php/lists"}