PHPackages                             eventsauce/clock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eventsauce/clock

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eventsauce/clock
================

Consume time from a Clock

1.2.2(1y ago)31.6M↓15.8%21MITPHPPHP ^8.0

Since Mar 27Pushed 1y agoCompare

[ Source](https://github.com/EventSaucePHP/Clock)[ Packagist](https://packagist.org/packages/eventsauce/clock)[ GitHub Sponsors](https://github.com/frankdejonge)[ RSS](/packages/eventsauce-clock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (6)Used By (1)

EventSauce Clock
================

[](#eventsauce-clock)

This is the EventSauce Clock component, which provides a straight forward way to consume time. Using a clock makes your code easier to test.

Installation
------------

[](#installation)

```
composer require eventsauce/clock
```

Usage
-----

[](#usage)

This package provides two implementations of the `EventSauce\Clock\Clock` interface.

---

In your production configuration, use the `EventSauce\Clock\SystemClock` implementation.

```
