spatie/holidays
Calculate public holidays for supported countries using ISO codes or country classes. Get an array of Holiday objects with name, CarbonImmutable date, and type (e.g., national). PHP 8.4+ package by Spatie, with extensible country definitions.
Adopt if:
Look elsewhere if:
holidays.py or date-fns).For Executives: "This package eliminates manual holiday maintenance—a common pain point in global apps. For example, a US-based SaaS company using this could automatically adjust support hours for German users during Bavaria’s regional holidays without custom code. It’s a low-cost, high-impact way to improve user experience and compliance, with zero ongoing maintenance."
For Engineering:
*"Spatie’s holidays package provides a batteries-included solution for holiday logic:
switch-case holiday checker with Holidays::for('jp')->getInRange('2024-01-01', '2024-12-31')—cleaner, more maintainable, and always up-to-date."*For Product: *"This enables features like:
How can I help you explore Laravel packages today?