label84/laravel-hours-helper
Generate Laravel collections of time/date intervals for any period: build dropdown-ready schedules with custom formatting, exclusions, support for past-midnight ranges, and multi-day spans. Simple facade API to create evenly spaced slots like 08:00–09:30 every 30 minutes.
Adopt if:
Look elsewhere if:
CarbonTimeZone logic; consider pairing with spatie/laravel-timezones).mathphp/math.spatie/laravel-validation-rules).For Executives: *"This package cuts development time for time-based features by 50–70% by providing a maintained, Laravel-native solution for generating intervals—like meeting slots, event durations, or shift schedules. For example:
For Engineers: *"This package replaces custom loops and Carbon hacks with a clean, Laravel-integrated API for generating time intervals. Key benefits:
HoursHelper::create('08:00', '17:00', 30).Illuminate\Support\Collection for seamless use in Blade, APIs, or background jobs (e.g., dispatching reminders for each slot).[['09:00', '10:00']]).For Product Managers: *"This tool enables faster experimentation with time-based features by reducing backend complexity. Prioritize it for:
For Designers: *"This package simplifies time-based interactions by providing clean, structured data for:
How can I help you explore Laravel packages today?