brick/date-time
A powerful set of immutable PHP date-time classes built on native PHP and following ISO 8601, inspired by Java's JSR 310. Adds missing concepts such as LocalDate, LocalTime, YearMonth, and MonthDay. Requires PHP 8.2+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| brick/geo | 0.93 | brick/geo is a PHP geometry library for working with points, lines, polygons, and other shapes. Provides common spatial operations, parsing/formatting, and robust value objects to model geo data cleanly in applications and services. | 254 | 251 | 35 | 225K | 5 | 12.8 | 42.3 | MIT | 1 year ago | |
| brick/structured-data | 0.90 | Generate, parse, and validate Schema.org structured data in PHP. brick/structured-data helps you build JSON-LD and other formats with a typed API, ensuring correct properties and values for SEO-rich pages and interoperable metadata. | 26 | 26 | 10 | 30K | 2 | 2.2 | 43.9 | MIT | 1 year ago | |
| alexeyshockov/clock | 0.90 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| brick/reflection | 0.89 | Low-level PHP 8.1+ helpers extending native reflection. ReflectionTools can list all instance methods/properties across inheritance (including private parents), get class hierarchies, and create reflections for any callable with meaningful function names. | 23 | 24 | 3 | 6K | 1 | 17.8 | 37.1 | MIT | 7 months ago | |
| brick/math | 0.88 | brick/math is a PHP library for arbitrary precision arithmetic. It provides BigInteger, BigDecimal, BigRational, and BigNumber classes, automatically using GMP or BCMath when available for fast, exact calculations. | 2,180 | 2,182 | 102 | 16M | 0 | 43.5 | 61.7 | MIT | 1 month ago | |
| omaralalwi/laravel-time-craft | 0.87 | Laravel Time Craft adds Eloquent date scopes (today, yesterday, this week, last N days) plus readable date accessors and formatting helpers to any model, with customizable date fields and timezone-aware querying. | 13 | 12 | 3 | 532 | 0 | 15.6 | 24.7 | MIT | 3 months ago | |
| apie/date-value-objects | 0.86 | 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 | 12 | 0 | 0.0 | 15.4 | MIT | — | |
| lcobucci/clock | 0.86 | lcobucci/clock is a lightweight clock abstraction for PHP that decouples code from DateTimeImmutable. Use SystemClock for real time or FrozenClock for tests, making time-dependent logic easy to control and verify. | 799 | 801 | 33 | 7M | 1 | 30.4 | 64.2 | MIT | 5 days ago | |
| brick/money | 0.86 | Brick\Money is a PHP library offering immutable Money and Currency classes with exact arithmetic and explicit rounding control, avoiding floating-point errors. Built on brick/math, it handles any amount size. Requires PHP 8.2+; GMP or BCMath recommended for speed. | 1,938 | 1,954 | 121 | 2M | 5 | 44.4 | 50.7 | MIT | 1 month ago | |
| digital-craftsman/date-time-precision | 0.86 | PHP/Symfony package wrapping DateTime in precise value objects: Moment, Time, Date, Month, Year, Day and Weekday, plus collections. Keeps UTC internally and converts to the relevant timezone for modifications. Includes Symfony normalizers and Doctrine types, and is thoroughly tested. | 0 | 0 | 0 | 32 | 1 | 26.9 | 24.5 | MIT | 3 weeks ago | |
| herrera-io/date-interval | 0.86 | 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 | 189 | 0 | 0.2 | 10.8 | MIT | — | |
| php-standard-library/date-time | 0.86 | Immutable, timezone-aware date and time types for PHP, with Duration, Period, and Interval support for precise, reliable temporal calculations. | 1 | 1 | 0 | 83K | 0 | 21.4 | 64.8 | MIT | 1 week ago | |
| healthengine/laravel-chronos | 0.86 | Chronos, from HealthEngine, gives Laravel apps control over the clock: freeze, travel to, or shift time in your application and test suite so date-dependent logic stays deterministic. Ideal for testing scheduled jobs, expiries, and time-sensitive features. | 3 | 3 | 1 | 0 | 0 | 0.0 | — | MIT | 2 years ago | |
| fresh/datetime | 0.86 | Fresh DateTime adds convenient, expressive date and time handling to Laravel and PHP applications. It simplifies parsing, formatting, comparing, and manipulating dates, with timezone-aware helpers and a clean, chainable API for everyday scheduling and timestamp tasks. | 18 | 19 | 3 | 35K | 0 | 5.3 | 46.9 | MIT | 9 months ago | |
| innmind/time-continuum | 0.85 | InnMind Time Continuum is a PHP library for modeling time as a continuum of instants and intervals. It offers immutable temporal objects, precise duration arithmetic, comparisons, and conversions for scheduling and time-based domain logic. | 28 | 28 | 1 | 2K | 0 | 2.2 | 18.4 | MIT | 9 months ago | |
| sanmai/duoclock | 0.85 | PSR-20 clock abstraction with dual time access (DateTimeImmutable, time(), microtime()) plus mockable sleep/usleep/nanosleep for testing. Includes deterministic TimeSpy and tick helpers to measure elapsed time. Minimal dependency (psr/clock) and easy to mock. | 3 | 3 | 1 | 1M | 0 | 5.2 | 57.1 | Apache-2.0 | 10 months ago | |
| assoconnect/php-date-bundle | 0.85 | — | 3 | 3 | 0 | 555 | 0 | 29.3 | 34.8 | MIT | 1 week ago | |
| beste/clock | 0.85 | A collection of PSR-20 clock implementations for PHP, including SystemClock, LocalizedClock, UTCClock, FrozenClock for tests, MinuteClock, and WrappingClock. Freeze time, set time zones, or wrap any object with a now() method. Install via composer require beste/clock. | 75 | 75 | 1 | 3M | 0 | 19.5 | 63.2 | MIT | 2 months ago | |
| alhames/phphelper | 0.85 | 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 | 1 | 0 | 2.4 | 4.2 | MIT | 6 years ago | |
| psr/clock | 0.85 | PSR-20 Clock interface for PHP. Defines ClockInterface::now() returning DateTimeImmutable, enabling dependency injection of time sources and easy testing. This package provides only the interface; use or create an implementation. | 652 | 652 | 7 | 26M | 0 | 3.8 | 55.3 | MIT | 3 years ago |
How can I help you explore Laravel packages today?