Holidays of 100+ countries in a PHP composer package.
Find a file
2025-09-01 12:19:47 +02:00
.gitlab project setup 2025-09-01 12:03:06 +02:00
bin project setup 2025-09-01 12:03:06 +02:00
ci project setup 2025-09-01 12:03:06 +02:00
src project setup 2025-09-01 12:03:06 +02:00
tests/Data project setup 2025-09-01 12:03:06 +02:00
.editorconfig project setup 2025-09-01 12:03:06 +02:00
.gitattributes project setup 2025-09-01 12:03:06 +02:00
.gitignore project setup 2025-09-01 12:03:06 +02:00
.gitlab-ci.yml project setup 2025-09-01 12:03:06 +02:00
composer.json fix dependencies 2025-09-01 12:19:47 +02:00
composer.lock fix dependencies 2025-09-01 12:19:47 +02:00
CONTRIBUTING.md project setup 2025-09-01 12:03:06 +02:00
LICENSE project setup 2025-09-01 12:03:06 +02:00
phpstan.neon project setup 2025-09-01 12:03:06 +02:00
phpunit.dist.xml project setup 2025-09-01 12:03:06 +02:00
README.md project setup 2025-09-01 12:03:06 +02:00

Holidays PHP package

This PHP package contains the holidays of 100+ countries for the next 5 years (including 2025).

Installation

composer require opencal/holidays

Usage

Check if a country is supported:

<?php

$countries = (new \OpenCal\Holidays\Data\Countries())->getAll();

$exists = isset($countries['DE']) // requires a alpha-2 country code.

Get the holidays of a specific country:

<?php

$holidays = (new \OpenCal\Holidays\Data\Holidays())->getAll();

$holidays2025 = $holidays['DE'][2025];

Contribute

See contribution guide.