nojimage/holiday-jp
最新稳定版本:v1.2.1
Composer 安装命令:
composer require nojimage/holiday-jp
包简介
This package will obtain information on Japanese public holidays based on the calendar information from the National Astronomical Observatory of Japan.
README 文档
README
Overview
This package obtains information on Japanese public holidays based on the calendar information from the National Astronomical Observatory of Japan.
NOTE: Public holiday information before 2001 is not available.
Source: National Astronomical Observatory of Japan
Requirements
- PHP 8.2 or above
Installation
composer require nojimage/holiday-jp
Usage
use Nojimage\HolidayJp\HolidayJp; $holidayJp = new HolidayJp(); // Get a list of holidays in 2024 $holidays = $holidayJp->getHolidays(2024); // Get a list of holidays for the specified period $holidays = $holidayJp->getHolidays(new DateTime('2024-01-01'), new DateTime('2024-12-31')); // Check if a date is a holiday $holidayJp->isHoliday('2024-01-01'); // true $holidayJp->isHoliday('2024-01-02'); // false
Contributing
If you find any bugs or have suggestions for new features, please create an issue or submit a pull request.
License
This project is released under the MIT License.
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-22