opencal/holidays
最新稳定版本:1.0.1
Composer 安装命令:
composer require opencal/holidays
包简介
Holidays of 100+ countries in a PHP composer package.
README 文档
README
This PHP package contains the holidays of 100+ countries for the next 5 years (including 2025).
Installation
composer require opencal/holidays
Usage
Check if a country is supported:
<?php
$countries = (new \OpenCal\Holidays\Data\Countries())->getAll();
$exists = isset($countries['DE']) // requires a alpha-2 country code.
Get the holidays of a specific country:
<?php
$holidays = (new \OpenCal\Holidays\Data\Holidays())->getAll();
$holidays2025 = $holidays['DE'][2025];
Contribute
See contribution guide.
统计信息
- 总下载量: 897
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-01