spaanproductions/laravel-carbon-holidays
最新稳定版本:3.0.5
Composer 安装命令:
composer require spaanproductions/laravel-carbon-holidays
包简介
Add Dutch Holidays Check to Carbon in Laravel
README 文档
README
This package can be used to add the isHoliday() function to Carbon. This only checks the Dutch holidays at the moment. We will only check if it's a holiday, not if it's a mandatory free day.
Installation
You can install the package via composer:
composer require spaanproductions/laravel-carbon-holidays
It will auto discover in Laravel.
Usage
use \Carbon\Carbon; // NewYear $date = Carbon::createFromDate(2021, 01, 01); $date->isHoliday(); // true
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@spaanproductions.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.
统计信息
- 总下载量: 8.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-18