PHPackages                             arokettu/system-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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. arokettu/system-clock

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

arokettu/system-clock
=====================

The smallest PSR-20 implementation (PHP 7.0 and later)

2.1.0(8mo ago)09.9k↓42.6%6MIT-0PHPPHP ^7.1 || ^8.0

Since Mar 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/arokettu/php-system-clock)[ Packagist](https://packagist.org/packages/arokettu/system-clock)[ Docs](https://sandfox.dev/php/clock/system-clock.html)[ RSS](/packages/arokettu-system-clock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (6)

PSR-20 System Clock Library
===========================

[](#psr-20-system-clock-library)

[![Packagist](https://camo.githubusercontent.com/3f10d0caac0bd664a59f59886f9d5e1ecec996c306cc27e1e6da67302c4a7e08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f73797374656d2d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/system-clock)[![PHP](https://camo.githubusercontent.com/ace5a9f26b9f807c15f51eb9c99862abe9d7600da0cdc487674a890ecfa6bc30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726f6b657474752f73797374656d2d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/system-clock)[![License](https://camo.githubusercontent.com/2c140c3d94eea5344c6708515063829ab01c1d1a036b928debf561997ebb94a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61726f6b657474752f7068702d73797374656d2d636c6f636b2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Gitlab pipeline status](https://camo.githubusercontent.com/d9fbdb19d6afd0014c7cd646497b3445d68c1ea506d95bdf9bc87972f23c4ad6/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f7068702d73797374656d2d636c6f636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/php-system-clock/-/pipelines)[![Downloads](https://camo.githubusercontent.com/b8e6a80356c3384bd8d22a1cfc282e906dad06a13dd0be51b8770e7c5511ff13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f61726f6b657474752f73797374656d2d636c6f636b3f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/system-clock)

The smallest possible [PSR-20](https://www.php-fig.org/psr/psr-20/) implementation for the case when you don't need all the fancy testing clock classes.

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

[](#installation)

```
composer require 'arokettu/system-clock'
```

Example
-------

[](#example)

```
