PHPackages                             benit/holiday - 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. benit/holiday

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

benit/holiday
=============

a holiday utility

0.0.1(9y ago)024MITPHPPHP &gt;=5.3.0

Since Nov 9Pushed 9y agoCompare

[ Source](https://github.com/benIT/holiday)[ Packagist](https://packagist.org/packages/benit/holiday)[ Docs](https://github.com/benIT/holiday)[ RSS](/packages/benit-holiday/feed)WikiDiscussions dev Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Welcome to Holiday.php ! [![Build Status](https://camo.githubusercontent.com/89c1f907b176aee5fc74bb8d3fbe20f78e076fa4d2148c9e6e042522913db736/68747470733a2f2f7472617669732d63692e6f72672f62656e49542f686f6c696461792e7376673f6272616e63683d646576)](https://travis-ci.org/benIT/holiday) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/33c6d19e0bde5391ae5fff86d1549ea67072a35d228efc68f256c30ab6701b1e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62656e49542f686f6c696461792f6261646765732f7175616c6974792d73636f72652e706e673f623d646576)](https://scrutinizer-ci.com/g/benIT/holiday/?branch=dev)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#welcome-to-holidayphp---)

Holidays are a very important stuff in life, this library provides tools to manage holidays.

Features
--------

[](#features)

- Get holidays for a given year.
- Filter holidays of a given year by day of the week. For example : get all the holidays that are nor Saturday nor Sunday.
- Determine if a date is a holiday.

Contribute
----------

[](#contribute)

Feel free to contribute to this project implementing country speficic holiday rules. [Take a look at the already implemented country holiday classes.](src/Country)

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

[](#installation)

```
composer require benit/holiday

```

Usage
-----

[](#usage)

[Check this example file.](doc/usage.php)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3520d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2970652?v=4)[Benoît](/maintainers/benIT)[@benIT](https://github.com/benIT)

---

Top Contributors

[![benIT](https://avatars.githubusercontent.com/u/2970652?v=4)](https://github.com/benIT "benIT (31 commits)")

---

Tags

dateholiday

### Embed Badge

![Health badge](/badges/benit-holiday/health.svg)

```
[![Health](https://phpackages.com/badges/benit-holiday/health.svg)](https://phpackages.com/packages/benit-holiday)
```

###  Alternatives

[umulmrum/holiday

A PHP library to compute holidays. It's something :-)

92371.2k1](/packages/umulmrum-holiday)[holiday-jp/holiday_jp

Japanese holidays

20171.9k](/packages/holiday-jp-holiday-jp)[k1low/holiday_jp

Japanese holidays

2033.0k](/packages/k1low-holiday-jp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
