688 B
688 B
https://github.com/spatie/holidays
Calculate public holidays for any country. Provides a unified interface to determine non-working holidays without maintaining separate holiday databases.
Features
- Multi-country support via ISO 3166-1 codes
- Check if a specific date is a holiday
- Holiday names with localization support
- Query holidays within date ranges
- Region-specific holidays (e.g., German states)
Usage
Holidays::for('be')->get(); // Get all Belgian holidays
Holidays::for('nl')->isHoliday('2024-01-01'); // Check if date is holiday
composer require spatie/holidays
#php #laravel #holidays #calendar #dates #scheduling #localization #spatie