Download the PHP package zarte/holiday without Composer
On this page you can find all versions of the php package zarte/holiday. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zarte/holiday
More information about zarte/holiday
Files in zarte/holiday
Download zarte/holiday
More information about zarte/holiday
Files in zarte/holiday
Please rate this library. Is it a good library?
Informations about the package holiday
holiday
节假日相关库,获取区间内工作日秒数
依赖
基于百度万年历接口,下一年放假补办安排需定时更新
develop
git clone https://github.com/zarte/holiday.git
cd holiday
composer install
demo
composer require zarte/holiday
Class Holiday
setFilePath
设置缓存文件路径
getDayStatus
获取特定日期节假日状态
initCache
生成缓存文件
getDifferSeconds
返回两个日期相差不含非工作日的秒数
getYearHoliday
获取节假日与补班列表
测试
php ./phpunit-6.5.3.phar -c ./phpunit.xml --filter=HolidayTest::testCheckDayStatus php ./phpunit-6.5.3.phar -c ./phpunit.xml --filter=HolidayTest::testDifferSeconds
All versions of holiday with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package zarte/holiday contains the following files
Loading the files please wait ....