Download the PHP package chinese-holidays/holiday-checker without Composer
On this page you can find all versions of the php package chinese-holidays/holiday-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chinese-holidays/holiday-checker
More information about chinese-holidays/holiday-checker
Files in chinese-holidays/holiday-checker
Download chinese-holidays/holiday-checker
More information about chinese-holidays/holiday-checker
Files in chinese-holidays/holiday-checker
Vendor chinese-holidays
Package holiday-checker
Short Description A professional PHP library to determine Chinese statutory holidays, working days, and weekends.
License MIT
Package holiday-checker
Short Description A professional PHP library to determine Chinese statutory holidays, working days, and weekends.
License MIT
Please rate this library. Is it a good library?
Informations about the package holiday-checker
Chinese Holidays Checker
一个专业的 PHP 库,用于准确判断中国法定节假日、工作日及日常周末。
本库包含 2020-2026 年(及后续更新)的中国大陆法定节假日及调休数据,使用 JSON 文件管理每年数据,易于维护和扩展。
功能特性
- ✅ 判断任意日期是否为 法定节假日
- ✅ 判断任意日期是否为 工作日(支持周末调休上班的识别)
- ✅ 判断任意日期是否为 日常周末(排除法定节假日及周末调休)
- ✅ 获取节假日详细信息(节假日名称、是否为休息日等)
- ✅ 高性能,按需加载年份数据,自动缓存
- ✅ PSR 标准,100% 单元测试覆盖
- ✅ 独立年份的 JSON 数据文件,易于开源协作更新
环境要求
- PHP >= 7.4
- ext-json
安装
使用 Composer 安装:
快速使用
数据更新
所有节假日数据存放在 data 目录下的 JSON 文件中(如 2024.json)。每年国务院发布新的放假安排时,只需提交对应年份的 JSON 文件 PR 即可。
JSON 格式示例:
贡献指南
请阅读 CONTRIBUTING.md 了解如何参与贡献。
许可证
本项目采用 MIT 许可证开源,详情请见 LICENSE 文件。
All versions of holiday-checker with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-json Version *
ext-json Version *
The package chinese-holidays/holiday-checker contains the following files
Loading the files please wait ...