rikudou/clock

Simple DI clock implementation

v1.0.2 2020-12-14 09:54 UTC

This package is auto-updated.

Last update: 2024-03-14 17:17:02 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

  1. Typehint the \Rikudou\Clock\ClockInterface as your dependency in whatever DI you use
  2. You can now easily test your time dependent functions
  3. ???
  4. Profit