eventsauce/clock
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| alexeyshockov/clock | 0.90 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| symfony/clock | 0.86 | Symfony Clock decouples your app from the system clock via a ClockInterface. Swap real and test clocks, get DateTimeImmutable “now()” values, control time zones, and pause execution with sleep()—ideal for time-sensitive code and reliable testing. | 431 | 432 | 3 | 11M | 0 | 32.4 | 65.0 | MIT | 1 week ago | |
| lcobucci/clock | 0.86 | Small PHP clock abstraction to decouple your code from direct DateTimeImmutable instantiation. Depend on the Clock interface and use SystemClock for real time or FrozenClock for deterministic tests, with explicit timezone support. | 796 | 798 | 32 | 5M | 1 | 28.0 | 60.7 | MIT | 1 month ago | |
| comsolit/clock-bundle | 0.84 | — | 0 | 0 | 1 | 2 | 4 | 1.0 | 7.3 | — | — | |
| beste/clock | 0.81 | beste/clock is a lightweight PHP clock implementation for time-dependent code. It provides a simple, test-friendly way to obtain the current time, swap in fixed or mock clocks, and improve determinism across your application and automated tests. | 74 | 74 | 1 | 1M | 0 | 2.5 | 55.3 | MIT | 3 years ago | |
| psr/clock | 0.74 | 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. | 644 | 643 | 7 | 14M | 0 | 3.7 | 55.3 | MIT | 3 years ago | |
| itsgoingd/clockwork | 0.72 | 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. | 0 | 5,988 | — | 611K | — | 54.1 | 40.9 | — | — |
How can I help you explore Laravel packages today?