vault backup: 2025-11-26 15:12:40
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
<https://github.com/spatie/holidays>
|
||||
https://github.com/spatie/holidays
|
||||
|
||||
#Carbon #TimeKeeping
|
||||
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
|
||||
```php
|
||||
Holidays::for('be')->get(); // Get all Belgian holidays
|
||||
Holidays::for('nl')->isHoliday('2024-01-01'); // Check if date is holiday
|
||||
```
|
||||
|
||||
```bash
|
||||
composer require spatie/holidays
|
||||
```
|
||||
|
||||
#php #laravel #holidays #calendar #dates #scheduling #localization #spatie
|
||||
|
||||
Reference in New Issue
Block a user