Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Clock Laravel Package

beste/clock

A collection of PSR-20 clock implementations for PHP, including SystemClock, LocalizedClock, UTCClock, FrozenClock for tests, MinuteClock, and WrappingClock. Freeze time, set time zones, or wrap any object with a now() method. Install via composer require beste/clock.

View on GitHub
Deep Wiki
Context7
4.0.0
  • 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.
3.1.0

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.

3.0.0

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

2.3.1

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

2.3.0

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

2.2.0

This release drops support for PHP <8.1.

2.1.0

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

2.0.0

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

Initial Release

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin