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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/holidays | 0.85 | 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. | 400 | 402 | 207 | 88K | 0 | 37.1 | 37.4 | MIT | 1 month ago | |
| chaplean/business-days-bundle | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | — | 7 years ago | |
| label84/laravel-hours-helper | 0.82 | 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. | 276 | 276 | 23 | 2K | 0 | 17.5 | 14.2 | MIT | 4 months ago | |
| florianv/business | 0.79 | Laravel package to validate, normalize, and format business identifiers and tax numbers (VAT, SIRET/SIREN, etc.) across multiple countries. Provides rules/helpers for forms and models, making compliant input handling and display easy. | 360 | 362 | 25 | 3K | 58 | 20.5 | 32.1 | MIT | 4 years ago | |
| league/period | 0.79 | — | 733 | 753 | 45 | 114K | 0 | 19.6 | 31.8 | MIT | 9 months ago | |
| digital-craftsman/datetime-parts | 0.78 | Value objects for precise date/time parts in PHP: Moment (UTC-based) plus Time, Date, Month, Year, Day/Weekday and collections. Avoid misleading DateTime comparisons, handle timezone-safe modifications across DST, with Symfony normalizers and Doctrine types. | 0 | 0 | 0 | 0 | 5 | 22.4 | 2.1 | MIT | 4 months ago | |
| brick/date-time | 0.76 | Immutable, ISO-8601–focused date/time API for PHP 8.2+ built on top of native DateTime, adding missing types like LocalDate, LocalTime, YearMonth, and MonthDay. Inspired by Java’s JSR-310, well-tested, production-ready, Composer installable. | 363 | 366 | 36 | 176K | 19 | 27.9 | 49.7 | MIT | 6 months ago | |
| digital-craftsman/date-time-precision | 0.75 | Thin PHP value objects for precise date/time concepts: Moment (UTC-backed) plus Time, Date, Month, Year, Day, Weekday and collections. Avoid misleading DateTime comparisons, handle timezone-safe modifications (DST), with Symfony normalizers and Doctrine types. | 0 | 0 | 0 | 134 | 5 | 23.4 | 35.1 | MIT | 4 months ago | |
| konnco/filament-timematrix | 0.74 | — | 0 | 1 | 0 | 1K | 0 | 21.0 | 49.2 | — | 3 weeks ago | |
| spatie/period | 0.73 | Immutable date period objects for PHP with powerful comparison tools. Create periods from any DateTime (including Carbon), then calculate overlaps, gaps, intersections, differences, containment, and other complex comparisons across two or many periods. | 1,697 | 1,699 | 76 | 164K | 0 | 19.9 | 27.5 | MIT | 3 years ago | |
| spatie/sun | 0.71 | Compute sun position times for any coordinates: get sunrise, solar noon (zenith), and sunset as Carbon instances, optionally for a specific date. Simple PHP API from Spatie, ideal for scheduling, dashboards, and daylight-aware features. | 75 | 77 | 14 | 5K | 0 | 11.1 | 26.4 | MIT | 7 months ago |
How can I help you explore Laravel packages today?