spatie/opening-hours
Define and query business opening hours with weekly schedules and exceptions. Check if a date/time is open or closed, get next open/close times, and format hours per day. Integrates with Carbon via cmixin/business-time for date-based queries.
spatie/laravel-activitylog).Adopt if:
Look elsewhere if:
react-opening-hours).For Executives: "This package lets us ship location-aware availability features faster—think ‘open now’ badges, appointment scheduling, or store finders—without building and maintaining custom logic. It handles edge cases like holidays and time zones, reducing support costs. For example, a retail client could use it to show real-time store hours across 50 locations, with seasonal adjustments, in weeks instead of months."
For Engineering:
*"Spatie’s opening-hours gives us a battle-tested, MIT-licensed solution for parsing and validating complex business hours. It integrates cleanly with Laravel models (e.g., Store::isOpenAt($datetime)) and supports:
DateTimeZone).How can I help you explore Laravel packages today?