dcarbone/gotime
Go-inspired time utilities for PHP 8.1+: a Duration type (parse/format like 5s, JSON as nanoseconds) plus helpers to generate DateInterval specs for DateTime add/sub. Includes a Time wrapper around DateTime aiming for Go time.Time-style APIs.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bitandblack/duration | 0.85 | bitandblack/duration provides a small PHP/Laravel utility for working with time spans: create, parse, and format durations in a readable way, convert between units, and simplify common duration calculations for apps, jobs, and reports. | 0 | 0 | — | 725 | — | 0.0 | 39.3 | — | — | |
| alexeyshockov/clock | 0.85 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| herrera-io/date-interval | 0.84 | Extends PHP’s DateInterval with handy conversions: turn intervals into ISO interval specs and seconds, and recreate intervals from seconds. Useful for normalizing and serializing durations (e.g., P2H <-> 7200). | 15 | 15 | 7 | 173 | 0 | 0.2 | 10.5 | MIT | — | |
| nesbot/carbon | 0.84 | Carbon is a PHP DateTime extension for easy date/time parsing, formatting, arithmetic, timezones, and human-friendly differences. Common in Laravel, it adds a fluent API, helpers like now()/today(), and readable methods for complex date logic. | 191 | 606 | 29 | 15M | 2 | 27.3 | 64.3 | MIT | 3 weeks ago | |
| label84/laravel-hours-helper | 0.84 | 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 | 3K | 0 | 16.9 | 15.9 | MIT | 4 months ago | |
| jenssegers/date | 0.83 | — | 1,804 | 1,846 | 252 | 83K | 7 | 27.7 | 25.6 | MIT | 6 years ago | |
| aeon-php/calendar | 0.80 | Aeon Calendar is a time management framework for PHP that makes working with dates, times, time zones, and intervals easier through a clean, object-oriented API, backed by solid testing and clear documentation with examples. | 206 | 209 | 8 | 192K | 0 | 10.4 | 41.0 | — | 3 years ago | |
| apie/date-value-objects | 0.80 | Date-related value objects for PHP/Apie that model only the date/time parts you need (LocalDate, Time, HourAndMinutes, UnixTimestamp, DateWithTimezone). Helps validate expected formats without relying on full DateTimeImmutable. | 0 | 0 | 0 | 20 | 0 | 0.0 | 18.3 | MIT | — | |
| php-standard-library/date-time | 0.76 | Immutable, timezone-aware DateTime types for PHP. Provides Duration, Period, and Interval helpers for safer date/time arithmetic and ranges, designed as a standard-library style package with clear docs and contribution links. | 1 | 1 | 0 | 38K | 0 | 18.0 | 63.3 | MIT | 2 months ago | |
| digital-craftsman/datetime-parts | 0.75 | 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.0 | 2.1 | MIT | 4 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 | 69 | 5 | 21.9 | 30.4 | MIT | 4 months ago | |
| brick/date-time | 0.74 | 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. | 361 | 367 | 36 | 177K | 19 | 26.6 | 49.1 | MIT | 7 months ago | |
| league/period | 0.73 | — | 733 | 753 | 45 | 131K | 0 | 18.6 | 32.4 | MIT | 9 months ago | |
| spatie/test-time | 0.69 | Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... | 208 | 208 | 9 | 146K | 0 | 5.2 | 39.3 | MIT | 2 years ago | |
| dcarbone/gohttp | 0.66 | Small PHP helper library inspired by Go’s net/http. Provides lightweight, Go-style utilities to simplify common HTTP request/response tasks in PHP, aiming to “PHP-ize” a few useful pieces of the Golang HTTP package. | 0 | 0 | 0 | 4K | 0 | 20.9 | 58.7 | MIT | 1 month ago | |
| cakephp/chronos | 0.65 | Chronos provides immutable date/time objects for PHP, helping prevent accidental mutations and side effects. Includes ChronosDate for calendar dates fixed at 00:00:00, plus convenient APIs inspired by Carbon but no longer extending DateTime. | 1,362 | 1,369 | 70 | 824K | 1 | 32.5 | 43.3 | MIT | 3 months ago | |
| spatie/google-time-zone | 0.62 | Convert GPS coordinates to a time zone using Google’s Time Zone API. Fetch DST and raw offsets plus timeZoneId and timeZoneName for any latitude/longitude. Works in any PHP project, with optional Laravel config publishing and auto-discovery. | 110 | 111 | 15 | 23K | 0 | 15.9 | 35.2 | MIT | 5 months ago |
How can I help you explore Laravel packages today?