PHPackages                             folospace/chineseholiday - 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. folospace/chineseholiday

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

folospace/chineseholiday
========================

:description

063PHP

Since Jun 28Pushed 6y agoCompare

[ Source](https://github.com/folospace/ChineseHoliday)[ Packagist](https://packagist.org/packages/folospace/chineseholiday)[ RSS](/packages/folospace-chineseholiday/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ChineseHoliday
==============

[](#chineseholiday)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6ed395dcd1c8e0e958d44aa0cd4a8ef4a73802709438aa165a739f59a5723d46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6c6f73706163652f6368696e657365686f6c696461792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/folospace/chineseholiday)[![Total Downloads](https://camo.githubusercontent.com/b273d849da495af45e5d0a4497a7a201e6f4eb59a4b518b0e2bc51680aed4f47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f6c6f73706163652f6368696e657365686f6c696461792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/folospace/chineseholiday)[![Build Status](https://camo.githubusercontent.com/015a366b90399c98454902af174fe77ff1b2737cd72d45599b3248440a22c730/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f666f6c6f73706163652f6368696e657365686f6c696461792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/folospace/chineseholiday)

Laravel get Chinese Holiday by date. 根据日期获取中国节日。

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

[](#installation)

Via Composer

```
$ composer require folospace/chineseholiday
```

Usage
-----

[](#usage)

```
use \Folospace\ChineseHoliday\Facades\ChineseHoliday;
//获取指定日期所有节日
$test = ChineseHoliday::getAllHolidays(strtotime('2019-02-04')); [除夕,立春]
//获取指定日期传统中国节日
$test = ChineseHoliday::getLunarHoliday(strtotime('2019-09-13')); //中秋
//获取指定日期二十四节气
$test = ChineseHoliday::getLunar24(strtotime('2019-06-21'));  //夏至
//获取指定日期特殊节日
$test = ChineseHoliday::getSpecialHoliday(strtotime('2019-06-16')); //父亲节
//获取指定日期相关的公历节日
$test = ChineseHoliday::getSolorHoliday(strtotime('2019-02-14')); //情人节
```

Publish and modify config
-------------------------

[](#publish-and-modify-config)

```
//自定义节日
$ php artisan vendor:publish --provider="Folospace\ChineseHoliday\ChineseHolidayServiceProvider"
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [magacy](https://github.com/folospace)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/098efa560ae557db2efbdb920039ecd0cd5d968573ee952e408451cde3ad5b7d?d=identicon)[folospace](/maintainers/folospace)

---

Tags

chinese-holiday

### Embed Badge

![Health badge](/badges/folospace-chineseholiday/health.svg)

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

###  Alternatives

[alchemy/zippy

Zippy, the archive manager companion

47522.6M51](/packages/alchemy-zippy)[kotchuprik/php-short-id

Yet another Short ID generator. The library help you generate short id like youtube, vimeo, bit.ly, etc.

3054.4k](/packages/kotchuprik-php-short-id)[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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