PHPackages                             kreait/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. kreait/clock

Abandoned → [beste/clock](/?search=beste%2Fclock)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

kreait/clock
============

A PHP 7.0 compatible clock abstraction

1.2(4y ago)9616.8M↓47.5%34MITPHPPHP ^7.0|^8.0

Since Aug 20Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/kreait/clock-php)[ Packagist](https://packagist.org/packages/kreait/clock)[ RSS](/packages/kreait-clock/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (4)

Warning

This package is no longer maintained. Use [beste/clock](https://packagist.org/packages/beste/clock) instead.

Clock
=====

[](#clock)

A PHP 7.0 compatible clock abstraction.

[![Current version](https://camo.githubusercontent.com/1a563800aeed6ce882c7183e49891738e9312301a289f40da71170e56406fcff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72656169742f636c6f636b2e737667)](https://packagist.org/packages/kreait/clock)![Supported PHP version](https://camo.githubusercontent.com/318a7e84041c9d8e1e9700540f75f7db9fefb924dca30ee0281008bc1c182f47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b72656169742f636c6f636b2e737667)[![Monthly Downloads](https://camo.githubusercontent.com/6057773b348a5c916d3b87a3fcfa799c88c1a195a0b88c077e924cd3602c6b6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6b72656169742f636c6f636b2e737667)](https://packagist.org/packages/kreait/clock/stats)[![Total Downloads](https://camo.githubusercontent.com/8d099bae587227547f44fcf681203de7e67e10269ecb63630fff0af44f6d3efa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72656169742f636c6f636b2e737667)](https://packagist.org/packages/kreait/clock/stats)[![Tests](https://github.com/kreait/clock-php/actions/workflows/tests.yml/badge.svg)](https://github.com/kreait/clock-php/actions/workflows/tests.yml)[![Discord](https://camo.githubusercontent.com/fe8a78d5e2cefe22846d36f43bb41909ef2f1ee8cb7241a21a900a2b1492e0f9/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3830373637393239323537333232303932352e7376673f636f6c6f723d373238396461266c6f676f3d646973636f7264)](https://discord.gg/Yacm7unBsr)

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

[](#installation)

```
composer require kreait/clock
```

Basic usage
-----------

[](#basic-usage)

```
