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

ActiveLibrary

xuqingfeng/holiday
==================

\[ holidays stuff \]

v0.1.1(11y ago)015GPLv3PHPPHP &gt;=5.3.3

Since Feb 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/xuqingfeng/holiday)[ Packagist](https://packagist.org/packages/xuqingfeng/holiday)[ RSS](/packages/xuqingfeng-holiday/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

holiday
-------

[](#holiday)

[![travis](https://camo.githubusercontent.com/c2aafdd886c7080e93e308db307a94be59bf7074d19822f3c4c2997007ff857d/68747470733a2f2f7472617669732d63692e6f72672f787571696e6766656e672f686f6c696461792e737667)](https://camo.githubusercontent.com/c2aafdd886c7080e93e308db307a94be59bf7074d19822f3c4c2997007ff857d/68747470733a2f2f7472617669732d63692e6f72672f787571696e6766656e672f686f6c696461792e737667)

### Motivation

[](#motivation)

ugly hard coded holiday date in our site.

### Install

[](#install)

> via composer

```
{
    "require": {
        "xuqingfeng/holiday": "0.1.*"
    }
}

```

### How

[](#how)

```
    /**
     * @param array $params
     * @return mixed
     *
     * month-required
     * year-required
     * country-required
     * region-optional
     */
    public function getPublicHolidays4Month(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * year-required
     * country-required
     */
    public function getPublicHolidays4Year(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * fromDate-required
     * toDate-required
     * country-required
     * region-optional
     */
    public function getPublicHolidays4DateRange(array $params)

    /**
     * @param array $params
     * @return mixed
     *
     * date-required
     * country-required
     */
    public function isPublicHoliday(array $params)

    /**
     * @return mixed
     */
    public function getSupportedCountries()
```

Want to dig deep ? 👉 [doc](http://kayaposoft.com/enrico/json/)

### Test

[](#test)

`phpunit .`

### Thanks

[](#thanks)

[enrico](http://kayaposoft.com/enrico/) (api)

### License

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

4092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d8b738fff30380f4d7672740033f97036db1a7236333cc9ce7b1703ebe085e0f?d=identicon)[xuqingfeng](/maintainers/xuqingfeng)

---

Top Contributors

[![xuqingfeng](https://avatars.githubusercontent.com/u/3715820?v=4)](https://github.com/xuqingfeng "xuqingfeng (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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