PHPackages                             suzunone/date-holidays - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. suzunone/date-holidays

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

suzunone/date-holidays
======================

world-wide holidays in Gregorian calender

v1.0.0(1mo ago)01ISCPHPPHP &gt;=8.2

Since Jun 3Pushed 1mo agoCompare

[ Source](https://github.com/suzunone/date-holidays-php)[ Packagist](https://packagist.org/packages/suzunone/date-holidays)[ RSS](/packages/suzunone-date-holidays/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

date-holidays
=============

[](#date-holidays)

A PHP library for calculating public holidays around the world. It makes rules and holiday data equivalent to JavaScript's `date-holidays` / `date-holidays-parser` available from PHP.

Features
--------

[](#features)

- Get holiday lists by country, state, and region code
- Check whether a given date is a holiday
- Support holiday names in multiple languages
- Support configurable timezones
- Support substitute holidays, movable holidays, and calendar-based holiday calculations
- Build YAML holiday data into a PHP array cache

Requirements
------------

[](#requirements)

- PHP 8.2 or later
- PHP extensions
    - `calendar`
    - `json`
- Composer

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

[](#installation)

```
composer require suzunone/date-holidays
```

For development, clone this repository and install its dependencies.

```
composer install
```

Basic Usage
-----------

[](#basic-usage)

```
