PackageTrack
Sign in Get early access

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 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 9
  1. 4.0.0 23 Aug 2026
    Release notes
    • Dropped support for PHP <8.3.
    • Removed the deprecated 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.
    Open source →
    Release notes
    • Dropped support for PHP <8.3.
    • Removed the deprecated 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.
    Open source →
  2. 3.1.0 22 Aug 2026
    Release notes

    Deprecates 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.

    Open source →
    Release notes

    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.

    Open source →
  3. 3.0.0 26 Nov 2022
    Release notes

    This release replaces stella-maris/clock with psr/clock.

    Open source →
    Release notes

    This release replaces stella-maris/clock with psr/clock.

    Open source →
  4. 2.3.1 25 Nov 2022
    Release notes

    This release reverts the change to implement psr/clock directly, to not break dependents who rely on stella-maris/clock

    Open source →
    Release notes

    This release reverts the change to implement psr/clock directly, to not break dependents who rely on stella-maris/clock

    Open source →
  5. 2.3.0 25 Nov 2022
    Release notes

    This release re-introduces support for PHP ^8.0 and implements the freshly released psr/clock (PSR-20) directly.

    Open source →
    Release notes

    This release re-introduces support for PHP ^8.0 and implements the freshly released psr/clock (PSR-20) directly.

    Open source →
  6. 2.2.0 04 Nov 2022
    Release notes

    This release drops support for PHP <8.1.

    Open source →
    Release notes

    This release drops support for PHP <8.1.

    Open source →
  7. 2.1.0 24 Apr 2022
    Release notes

    Adds the WrappingClock which allows using an object with a now() method returning a DateTimeImmutable object as a "real" clock.

    Open source →
    Release notes

    Adds the WrappingClock which allows using an object with a now() method returning a DateTimeImmutable object as a "real" clock.

    Open source →
  8. 2.0.0 20 Apr 2022
    Release notes

    This release introduces a compatibility layer with the PSR-20 draft, allowing us to already get some interoperability by depending on a shared interface.

    Open source →
    Release notes

    This release introduces a compatibility layer with the PSR-20 draft, allowing us to already get some interoperability by depending on a shared interface.

    Open source →
  9. 1.0.0 10 Dec 2021
    Release notes

    Initial Release

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive