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

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

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

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

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

Since Jun 20Pushed 4y agoCompare

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

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 31% 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

1473d 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

[psr/clock

Common interface for reading the clock.

646378.5M527](/packages/psr-clock)[stella-maris/clock

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

7949.7M2](/packages/stella-maris-clock)[symfony/clock

Decouples applications from the system clock

436205.7M389](/packages/symfony-clock)[beste/clock

A collection of Clock implementations

7427.5M29](/packages/beste-clock)[kdyby/datetime-provider

Time provider, providing consistent current date, time, datetime and timezone across the request.

1146.8k2](/packages/kdyby-datetime-provider)

PHPackages © 2026

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