beste/clock
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.
Beste\Clock interface. Clock implementations now implement
Psr\Clock\ClockInterface directly.WrappingClock will throw an InvalidArgumentException if the given object doesn't behave like
a PSR-20 clock and will throw an UnexpectedValueException if a later call does not return
DateTimeImmutable.Deprecated Beste\Clock in favor of Psr\Clock\ClockInterface. The implementations continue to implement
the deprecated interface for backwards compatibility. Please type against Psr\Clock\ClockInterface.
Beste\Clock will be removed in 4.0.
This release replaces stella-maris/clock with psr/clock.
This release reverts the change to implement psr/clock directly, to not break dependents who rely on stella-maris/clock
This release re-introduces support for PHP ^8.0 and implements the freshly released psr/clock (PSR-20) directly.
This release drops support for PHP <8.1.
Adds the WrappingClock which allows using an object with a now() method returning a DateTimeImmutable object
as a "real" clock.
This release introduces a compatibility layer with the PSR-20 draft, allowing us to already get some interoperability by depending on a shared interface.
Initial Release
How can I help you explore Laravel packages today?