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

ActiveLibrary

room247/clock
=============

This is an interim release of the proposed PSR-20 Clock-Interface.

1.0.3(3y ago)03MITPHPPHP ^7.1|^8.0

Since Jun 20Pushed 3y agoCompare

[ Source](https://github.com/room247/Clock)[ Packagist](https://packagist.org/packages/room247/clock)[ RSS](/packages/room247-clock/feed)WikiDiscussions master Synced 1mo ago

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

Clock
=====

[](#clock)

[![Total Downloads](https://camo.githubusercontent.com/9bd88aa5edde998cefa0ec65591a7066efb2e2d150cb4321d86d015eec7b08a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6f6d3234372f636c6f636b)](https://packagist.org/packages/room247/clock)[![Latest Stable Version](https://camo.githubusercontent.com/ffcd0c3ad13b39fac52929c946c76902ab3c0dd5af5647253a6082231fe1ebf3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6f6d3234372f636c6f636b)](https://packagist.org/packages/room247/clock)[![License](https://camo.githubusercontent.com/bda9c042789cd8df85c10edfe4ccd4aa7f880b3dd340069996e730291e146e59/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6f6d3234372f636c6f636b)](https://packagist.org/packages/room247/clock)[![PHPUnit tests](https://github.com/room247/Clock/actions/workflows/tests.yml/badge.svg)](https://github.com/room247/Clock/actions/workflows/tests.yml)

There once has been an implementation of the proposed [PSR-20](https://github.com/php-fig/fig-standards/blob/master/proposed/clock.md) Clock interface already but it has been removed from GitHub for some reason, so I decided to provide an (possibly interim) implementation. Credits go to the former Author.

Since the proposed interface hasn't yet been released by the FIG (and no work has been done to the proposal ever since), you can use this one here.

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

[](#installation)

This package is available on \[Packagist\], so you can install it using \[Composer\].

```
composer require room247/clock
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

1427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c1634e6f9af1dfdd72a7c7808fdde2f5fb7b05c29d4aa1d5366b91115cd8b68?d=identicon)[room247](/maintainers/room247)

---

Top Contributors

[![bastianmartin](https://avatars.githubusercontent.com/u/107625414?v=4)](https://github.com/bastianmartin "bastianmartin (19 commits)")

---

Tags

clockpsr20datetimetime

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/room247-clock/health.svg)

```
[![Health](https://phpackages.com/badges/room247-clock/health.svg)](https://phpackages.com/packages/room247-clock)
```

###  Alternatives

[symfony/clock

Decouples applications from the system clock

431168.9M205](/packages/symfony-clock)[psr/clock

Common interface for reading the clock.

642332.9M343](/packages/psr-clock)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

177661.4M4.8k](/packages/nesbot-carbon)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[carbonphp/carbon-doctrine-types

Types to use Carbon in Doctrine

218220.4M8](/packages/carbonphp-carbon-doctrine-types)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
