symfony/clock
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| comsolit/clock-bundle | 0.91 | — | 0 | 0 | 1 | 2 | 4 | 1.0 | 7.3 | — | — | |
| lcobucci/clock | 0.91 | 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 | |
| alexeyshockov/clock | 0.90 | — | 2 | 2 | 2 | 0 | 6 | 0.8 | 1.1 | — | — | |
| eventsauce/clock | 0.87 | 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 | 35K | 0 | 0.1 | 54.2 | — | — |
How can I help you explore Laravel packages today?