beste/clock
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| beste/json | 0.89 | JSON helpers for PHP and Laravel: decode/encode, safe access, casting, and convenient manipulation of JSON strings and arrays. A lightweight utility package focused on cleaner, less error-prone JSON handling in everyday applications. | 43 | 43 | 0 | 2M | 0 | 4.5 | 55.8 | MIT | 1 year ago | |
| tempest/clock | 0.86 | 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 | — | |
| rikudou/clock | 0.86 | 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 | — | |
| innmind/time-continuum | 0.86 | 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 | |
| eventsauce/clock | 0.86 | Simple clock abstraction for PHP. Use SystemClock in production and TestClock in tests to control time deterministically. Get now() as DateTimeImmutable, access timeZone(), move time forward, tick to system time, or fixate to a specific moment. | 3 | 3 | 2 | 55K | 0 | 0.1 | 55.3 | — | — | |
| mateusjunges/laravel-time-helpers | 0.85 | Laravel Time Helpers adds handy date and time utilities to Laravel apps: Carbon macros, timezone conversion, and human-friendly formatting. Replace repetitive, error-prone date logic with clean, readable helpers that keep your code simple. | 38 | — | 2 | — | 0 | 0.3 | — | MIT | 4 years ago | |
| alexeyshockov/clock | 0.85 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| lcobucci/clock | 0.85 | 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 | |
| omaralalwi/laravel-time-craft | 0.85 | 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 | 483 | 0 | 15.5 | 24.0 | MIT | 3 months ago | |
| brick/date-time | 0.85 | 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+. | 361 | 365 | 36 | 242K | 19 | 37.8 | 56.0 | MIT | 4 weeks ago | |
| comsolit/clock-bundle | 0.85 | — | 0 | 0 | 1 | 0 | 4 | 1.0 | 0.8 | — | — | |
| 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 | |
| digital-craftsman/date-time-precision | 0.85 | 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 | |
| itsgoingd/clockwork | 0.85 | Clockwork is a browser-based dev tool for PHP/Laravel that profiles your app in real time. Inspect request data, performance, logs, database/cache/Redis queries, events, views, commands, queue jobs and tests—all from a clean timeline UI. | 5,947 | 5,999 | 332 | 1M | 32 | 54.2 | 43.7 | MIT | 2 years ago | |
| desarrolla2/timer | 0.85 | Lightweight PHP timer utility for measuring execution time. Start/stop laps, track multiple timers, and get elapsed time for profiling and benchmarking small code sections. Suitable for quick performance checks during development. | 4 | 5 | 1 | 201 | 0 | 0.1 | 22.3 | MIT | — | |
| acts/time-mock-bundle | 0.85 | Symfony bundle for mocking and controlling time in tests and development. Freeze, fast-forward, and reset “now” to make time-dependent code deterministic, simplify assertions, and avoid flaky tests across DateTime/Clock usage. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| 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 | 189 | 0 | 0.2 | 10.8 | MIT | — | |
| sunrise/coding-standard | 0.84 | Sunrise PHP Coding Standard provides a ready-to-use PHPCS ruleset (ruleset.xml) you can reference in your project to enforce consistent code style across src and tests, aligned with PSR-1 and PSR-2. | 2 | 2 | 1 | 158 | 1 | 0.5 | 23.9 | MIT | 7 years ago | |
| andydefer/laravel-chronos | 0.84 | Laravel Chronos is an advanced scheduling engine for Laravel. Manage recurring availability, appointments and blocked periods, prevent double bookings, enforce 17 business validation rules and automatically find the next free slot. | 0 | 0 | 0 | 230 | 0 | 0.0 | 32.7 | — | — | |
| camroncade/timezone | 0.84 | Laravel package for working with timezones. It provides curated timezone identifier lists, select-menu helpers, and validation support, making it easy to build timezone pickers and user settings without maintaining your own arrays. Includes offset helpers for timezone-aware forms. | 159 | — | 37 | — | 10 | 5.0 | 4.2 | MIT | 7 years ago |
|
How can I help you explore Laravel packages today?