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.
You can install the package via composer:
composer require spaanproductions/laravel-carbon-holidays
It will auto discover in Laravel.
use \Carbon\Carbon;
// NewYear
$date = Carbon::createFromDate(2021, 01, 01);
$date->isHoliday(); // true
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@spaanproductions.nl instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.