php-standard-library/date-time
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bitandblack/duration | 0.91 | 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 | — | 555 | — | 0.0 | 37.9 | — | — | |
| herrera-io/date-interval | 0.90 | 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 | 131 | 0 | 0.2 | 9.4 | MIT | — | |
| aeon-php/calendar | 0.89 | 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. | 204 | 207 | 8 | 217K | 0 | 10.4 | 42.0 | — | 3 years ago | |
| moment/moment | 0.89 | Moment.js is a widely used JavaScript library for parsing, validating, manipulating, and formatting dates and times. It supports locales, time zones via plugins, and human-friendly output like relative time, making date handling simpler across apps. | 47,975 | 47,993 | 6,989 | 12K | 250 | 60.0 | 27.5 | MIT | — | |
| alhames/phphelper | 0.88 | PHP Helper is a small set of utility classes and functions for PHP 7.1+ to make common tasks easier. Includes a Str helper (docs in Russian) and other lightweight tools to simplify everyday development. | 0 | 0 | 0 | 0 | 0 | 2.4 | — | MIT | 5 years ago | |
| league/period | 0.88 | — | 0 | 752 | — | 125K | — | 21.6 | 32.5 | — | — | |
| alexeyshockov/clock | 0.87 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| jenssegers/date | 0.87 | — | 0 | 1,847 | — | 90K | — | 27.7 | 26.1 | — | — | |
| nesbot/carbon | 0.87 | 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. | 177 | 592 | 27 | 12M | 3 | 24.4 | 64.4 | MIT | 1 month ago | |
| awd-studio/vo-date-time | 0.87 | Immutable PHP 8.3+ date-time value object. Create from strings, compare (equal/greater/less/between), and return new instances for changes like nextDay(), copy(), or modified() with DateTimePeriod offsets (days, minutes, weeks). | 0 | 0 | 0 | 0 | 0 | 0.9 | — | — | 1 year ago | |
| dcarbone/gotime | 0.86 | 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. | 2 | 2 | 1 | 2K | 0 | 4.9 | 40.1 | MIT | 1 year ago | |
| baskooijmaninc/suzie | 0.86 | Laravel package providing Suzie-related helpers and integrations for your app. Includes service provider setup, configuration options, and utilities to simplify common tasks and streamline development workflows. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| digital-craftsman/datetime-parts | 0.86 | 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 | 25.3 | 2.2 | MIT | 2 months ago | |
| brick/date-time | 0.86 | 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. | 362 | 366 | 35 | 149K | 19 | 30.2 | 49.0 | MIT | 5 months ago | |
| cocur/human-date | 0.86 | Transforms DateTime values into human‑readable strings like Today, Tomorrow, Yesterday, Next Tuesday, or formatted dates. Supports translated strings via a translation interface (including Symfony Translation). Lightweight, no external dependencies, PSR‑4, PHP 5.4+ and HHVM. | 28 | 30 | 1 | 28 | 3 | 1.2 | 3.4 | MIT | 12 years ago | |
| digital-craftsman/date-time-precision | 0.85 | 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 | 95 | 5 | 25.5 | 32.7 | MIT | 2 months ago | |
| assoconnect/php-date | 0.85 | — | 7 | 7 | 1 | 293 | 0 | 21.3 | 24.4 | MIT | 3 months ago | |
| sylius/calendar | 0.85 | Sylius Calendar Component provides date handling utilities for PHP applications. A lightweight package for working with dates and related calendar concerns in your project. | 9 | 9 | 8 | 49K | 1 | 1.1 | 50.7 | — | 3 years ago | |
| zf1/zend-date | 0.85 | Legacy Zend Framework 1 date/time utilities with parsing, formatting, locale-aware handling, and date calculations. Useful for maintaining older ZF1 apps or bridging to modern codebases that still depend on Zend_Date behavior. | 0 | 5 | — | 3K | — | 0.3 | 38.6 | — | — | |
| knplabs/knp-time-bundle | 0.81 | — | 624 | 633 | 103 | 201K | 13 | 29.6 | 43.4 | MIT | 5 months ago |
How can I help you explore Laravel packages today?