tempest/datetime
tempest/datetime offers a clean, immutable date and time API for PHP, with parsing, formatting, timezone handling, and convenient helpers for comparing and manipulating dates. A lightweight option for everyday datetime work.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| tempest/clock | 0.84 | A lightweight clock abstraction for the Tempest framework, offering a testable interface for reading the current time. Swap in a frozen or mock clock during tests so time-dependent code stays deterministic instead of relying on native PHP date functions. | 0 | 0 | 0 | 113 | 0 | 0.0 | 28.4 | MIT | — | |
| symfony/clock | 0.84 | Decouples your PHP applications from the system clock by injecting a ClockInterface, so you can get the current time, force a timezone, or pause execution with sleep, and swap in a mock clock for testing. | 436 | 436 | 3 | 21M | 0 | 31.6 | 64.6 | MIT | 3 weeks ago | |
| innmind/time-continuum | 0.83 | 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 | |
| icanhazstring/symfony-time-machine | 0.83 | Symfony Time Machine makes time-dependent Symfony code testable by letting you freeze, advance, or reset the application clock. Use it to create deterministic tests and simulate past or future dates without changing your system time. | 7 | 7 | 0 | 0 | 1 | 0.9 | 2.7 | MIT | 4 years ago | |
| beste/clock | 0.82 | 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 | |
| apie/date-value-objects | 0.82 | 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 | — | |
| kdyby/datetime-provider-bundle | 0.82 | A Symfony bundle that integrates kdyby/datetime-provider, giving you DI-managed date/time services so you can inject and control the current time instead of calling new DateTime directly. This makes time-dependent code testable and lets you freeze or mock "now" in your Symfony applications... | 6 | 6 | 1 | 0 | 0 | 0.4 | — | NOASSERTION | 6 years ago | |
| mrgoodbytes8667/date-bundle | 0.82 | mrgoodbytes8667/date-bundle is a PHP package that bundles date-related functionality for Laravel/PHP projects. It provides a Composer-installable date bundle for keeping date handling in a dedicated package rather than scattered across application code. | 0 | 0 | 0 | 70 | 0 | 0.0 | 25.6 | NOASSERTION | 1 year ago | |
| postyou/dealsandprojects-bundle | 0.82 | A Contao bundle for managing deals and projects, giving editors structured backend modules to create, organize, and publish offers or project entries. Content is delivered through frontend modules and templates, making it straightforward to present deal listings and project showcases on a Contao sit... | 0 | — | 0 | — | 0 | 0.3 | — | MIT | 2 years ago | |
| digital-craftsman/datetime-parts | 0.82 | Thin value objects for Time, Date, Month, Year and Moment, wrapping DateTime so you never pad dates with fake times. Internal UTC with timezone-aware edits, plus Symfony normalizers and Doctrine types for storing them directly in the database. | 0 | 0 | 0 | 0 | 0 | 27.9 | — | MIT | 6 days ago | |
| php-standard-library/date-time | 0.82 | 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 | |
| fresh/datetime | 0.81 | 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 | |
| sanmai/duoclock | 0.81 | 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 | |
| rikudou/clock | 0.81 | A lightweight clock abstraction for PHP that makes time-dependent code easier to test. Inject a clock instead of calling time() directly, use the system clock in production, and swap in a fixed or mocked clock in tests to control dates and durations reliably. Framework-agnostic and simple to integra... | 1 | 0 | 0 | 2K | 0 | 0.0 | 42.3 | MIT | — | |
| awd-studio/vo-date-time | 0.81 | 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 | |
| lcobucci/clock | 0.81 | 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 | |
| mablae/time-window-bundle | 0.81 | A Symfony bundle for defining reusable time windows and checking whether the current time falls inside them, with support for recurring daily or weekly ranges, timezone-aware comparisons, and simple configuration for scheduling and availability rules. | 0 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| yohang/calendr | 0.81 | Calendr is an object-oriented PHP calendar library for creating, managing, and rendering calendars and events. It supports recurring events, multiple calendars, and flexible output via renderers, making it easy to integrate scheduling into PHP applications. | 467 | 475 | 66 | 3K | 10 | 8.8 | 16.1 | MIT | 11 months ago | |
| alexeyshockov/clock | 0.81 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| mwsimple/scdatetimepicker-bundle | 0.80 | mwsimple/scdatetimepicker-bundle is a Symfony bundle that provides a simple date and time picker form type, making it easy to add calendar and time selection to your forms with minimal configuration. | 11 | 11 | 7 | 709 | 0 | 0.4 | 24.6 | MIT | 1 year ago |
How can I help you explore Laravel packages today?