Yet another clock abstraction
Yet another clock abstraction...
The purpose is to decouple projects from DateTimeImmutable instantiation so that we can test things properly.
Package is available on Packagist, you can install it using Composer.
composer require lcobucci/clock
Make your objects depend on the Lcobucci\Clock\Clock interface and use SystemClock or FrozenClock to retrieve the current time or a specific time (for testing), respectively:
…
No open issues yet, or sync has not completed.