opencal/holidays

Holidays of 100+ countries in a PHP composer package.

1.0.1 2025-09-01 10:07 UTC

This package is auto-updated.

Last update: 2025-09-01 10:23:20 UTC


README

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.