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

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

ingenioz-it/clock
=================

A PSR clock

v1.0.1(3y ago)11111MITPHPPHP &gt;=8.2

Since Nov 26Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (8)Versions (4)Used By (1)

Clock
=====

[](#clock)

A [PSR 20](https://www.php-fig.org/psr/psr-20/) Clock implementation.

Provides :

- A system clock
- A "frozen" clock that can be used for mocking tests

About
-----

[](#about)

InfoValueLatest release[![Packagist Version](https://camo.githubusercontent.com/4674e0933fc4c020768c34403fc6aafe0e5f998417bb30ab5e05ae5a79f9a995/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e67656e696f7a2d69742f636c6f636b)](https://packagist.org/packages/ingenioz-it/clock)Requires[![PHP from Packagist](https://camo.githubusercontent.com/1683524de7432701d982bb618726f4a84b52f7406d67bb879345a19d60b2881a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696e67656e696f7a2d69742f636c6f636b2e737667)](https://camo.githubusercontent.com/1683524de7432701d982bb618726f4a84b52f7406d67bb879345a19d60b2881a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696e67656e696f7a2d69742f636c6f636b2e737667)License[![Packagist](https://camo.githubusercontent.com/bf0e4e67f7874cc73804625d7cce23614f093c71782d4e6ab78e77240cb3a23c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e67656e696f7a2d69742f636c6f636b)](https://camo.githubusercontent.com/bf0e4e67f7874cc73804625d7cce23614f093c71782d4e6ab78e77240cb3a23c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696e67656e696f7a2d69742f636c6f636b)Unit tests[![tests](https://github.com/IngeniozIT/psr-clock/actions/workflows/1-tests.yml/badge.svg)](https://github.com/IngeniozIT/psr-clock/actions/workflows/1-tests.yml)Code coverage[![Code Coverage](https://camo.githubusercontent.com/f33c0fb9767a61795825d5cdbf0b92991e141ba3113a35ec45cd909a387de3d0/68747470733a2f2f636f6465636f762e696f2f67682f496e67656e696f7a49542f7073722d636c6f636b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/IngeniozIT/psr-clock)Code quality[![code-quality](https://github.com/IngeniozIT/psr-clock/actions/workflows/2-code-quality.yml/badge.svg)](https://github.com/IngeniozIT/psr-clock/actions/workflows/2-code-quality.yml)Quality tested with[phpunit](https://github.com/sebastianbergmann/phpunit), [phan](https://github.com/phan/phan), [psalm](https://github.com/vimeo/psalm), [phpcs](https://github.com/squizlabs/PHP_CodeSniffer), [phpstan](https://github.com/phpstan/phpstan), [phpmd](https://github.com/phpmd/phpmd), [infection](https://github.com/infection/infection)Installation
------------

[](#installation)

```
composer require ingenioz-it/clock
```

Full documentation
------------------

[](#full-documentation)

You can list the available features by running

```
composer testdox
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~141 days

Total

2

Last Release

1124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/167b1b0644440255e02a195b70b29024f6dff62bf886c7450553dc13d354a95b?d=identicon)[Ingenioz IT](/maintainers/Ingenioz%20IT)

---

Top Contributors

[![IngeniozIT](https://avatars.githubusercontent.com/u/41050198?v=4)](https://github.com/IngeniozIT "IngeniozIT (1 commits)")

---

Tags

clean-codeclockphppsr-20

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[lcobucci/clock

Yet another clock abstraction

790190.9M114](/packages/lcobucci-clock)[symfony/clock

Decouples applications from the system clock

430168.9M205](/packages/symfony-clock)[eventsauce/eventsauce

A pragmatic event sourcing library for PHP with a focus on developer experience.

8632.1M47](/packages/eventsauce-eventsauce)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.4k423.9k30](/packages/mcp-sdk)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)

PHPackages © 2026

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