rikudou / clock
Simple DI clock implementation
Installs: 52 943
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
This package is auto-updated.
Last update: 2024-12-14 18:57:41 UTC
README
Simple library I wrote because I'm tired of writing it all the time for each project where I need current time.
Can be used with symfony via rikudou/clock-bundle.
Installation
composer require rikudou/clock
Usage
- Typehint the
\Rikudou\Clock\ClockInterface
as your dependency in whatever DI you use - You can now easily test your time dependent functions
- ???
- Profit