swydmuch/business-days
Composer 安装命令:
composer require swydmuch/business-days
包简介
PHP library to work with single day and range of days in order to check business days
README 文档
README
PHP library to work with single day and range of days in order to check business days
Installation
composer require swydmuch/business-days
Localization
At the moment, the library operates only on the public holidays in Poland (pl) and Netherlands (nl)
I encourage you to contribute in order to add other locations
Basic Usage
Creating Day from string
$day = Day::createFromString('2021-12-13', 'pl');
Checking if day is business
$day->isBusiness(); //true
Creating range between two days
$range = Range::createFromString('2021-12-13', '2021-12-14', 'pl');
Counting business days in range
$range->countBusinessDays(); //2
Getting array of business days from range
$range->businessDays(); //[Day,Day]
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-30