mayflower/holiday
最新稳定版本:0.7.0
Composer 安装命令:
composer require mayflower/holiday
包简介
A library to calculate holidays
README 文档
README
A library to calculate holidays.
Supported countries and states
- America
- Germany and all constituent states
- Sweden
- Netherlands
Installation
composer require mayflower/holiday
Usage
<?php require_once __DIR__ . '/vendor/autoload.php'; $holidays = new Holiday\Germany(); // Returns array of Holiday objects, if any between the given dates. $holidays->between( new \DateTime('01.01.2018'), new \DateTime('31.12.2018') ); // isHoliday calls ->between with the given date to both parameters. $holidays->isHoliday(new \DateTime('01.05.2018'))
统计信息
- 总下载量: 276.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2012-11-27