spaanproductions / laravel-carbon-holidays
Add Dutch Holidays Check to Carbon in Laravel
Installs: 5 793
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^8.0|^8.1|^8.2|^8.3
- ext-calendar: *
- illuminate/support: ^10.0|^11.0
- nesbot/carbon: ^2.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0
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.