beste/clock
A collection of Clock implementations
4.0.0
30M downloads/mo
#520 most downloaded on Packagist
beste/clock
What this package is like to depend on
Last release today
23 Aug 2026
Ships unpredictably
gaps range from 3 weeks to 3.7 years
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
9 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
9 releases · Dec 2021 to Aug 2026Releases
latest 9-
4.0.023 Aug 2026Release notes
Open source →- Dropped support for PHP <8.3.
- Removed the deprecated
Beste\Clockinterface. Clock implementations now implementPsr\Clock\ClockInterfacedirectly. WrappingClockwill throw anInvalidArgumentExceptionif the given object doesn't behave like a PSR-20 clock and will throw anUnexpectedValueExceptionif a later call does not returnDateTimeImmutable.
Release notes
Open source →- Dropped support for PHP <8.3.
- Removed the deprecated
Beste\Clockinterface. Clock implementations now implementPsr\Clock\ClockInterfacedirectly. WrappingClockwill throw anInvalidArgumentExceptionif the given object doesn't behave like a PSR-20 clock and will throw anUnexpectedValueExceptionif a later call does not returnDateTimeImmutable.
-
3.1.022 Aug 2026Release notes
Open source →Deprecates
Beste\Clockin favor ofPsr\Clock\ClockInterface. The implementations continue to implement the deprecated interface for backwards compatibility. Please type againstPsr\Clock\ClockInterface.Beste\Clockwill be removed in 4.0.Release notes
Open source →Deprecated
Beste\Clockin favor ofPsr\Clock\ClockInterface. The implementations continue to implement the deprecated interface for backwards compatibility. Please type againstPsr\Clock\ClockInterface.Beste\Clockwill be removed in 4.0. -
3.0.026 Nov 2022 -
2.3.125 Nov 2022Release notes
Open source →This release reverts the change to implement
psr/clockdirectly, to not break dependents who rely onstella-maris/clockRelease notes
Open source →This release reverts the change to implement
psr/clockdirectly, to not break dependents who rely onstella-maris/clock -
2.3.025 Nov 2022Release notes
Open source →This release re-introduces support for PHP ^8.0 and implements the freshly released
psr/clock(PSR-20) directly.Release notes
Open source →This release re-introduces support for PHP ^8.0 and implements the freshly released
psr/clock(PSR-20) directly. -
2.2.004 Nov 2022 -
2.1.024 Apr 2022Release notes
Open source →Adds the
WrappingClockwhich allows using an object with anow()method returning aDateTimeImmutableobject as a "real" clock.Release notes
Open source →Adds the
WrappingClockwhich allows using an object with anow()method returning aDateTimeImmutableobject as a "real" clock. -
2.0.020 Apr 2022Release notes
Open source →This release introduces a compatibility layer with the PSR-20 draft, allowing us to already get some interoperability by depending on a shared interface.
Release notes
Open source →This release introduces a compatibility layer with the PSR-20 draft, allowing us to already get some interoperability by depending on a shared interface.
-
1.0.010 Dec 2021