psr/clock
PSR-20 Clock interface for PHP. Defines ClockInterface::now() returning DateTimeImmutable, enabling dependency injection of time sources and easy testing. This package provides only the interface; use or create an implementation.
Architecture fit is excellent for decoupling time dependencies in Laravel applications. The interface aligns with Laravel's dependency injection container, enabling clean separation of concerns between time-sensitive logic and implementation details. Integration feasibility is high due to minimal setup—only requiring composer require psr/clock and binding an implementation. Technical risk is low as it's a PSR standard with no runtime code, but the "Dependents: 0" metric may indicate limited adoption in existing Laravel ecosystems (though PSR interfaces often don't show direct dependents). Key questions include: Which PSR-20 implementations are most compatible with Laravel? How does timezone handling work across implementations? Are there known conflicts with Laravel
How can I help you explore Laravel packages today?