rikudou/clock

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple DI clock implementation

Installs: 92 228

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/rikudou/clock

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

This package is auto-updated.

Last update: 2025-02-05 15:46:38 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