PHPackages                             navarr/precise-clocks - 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. navarr/precise-clocks

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

navarr/precise-clocks
=====================

An implementation of PSR-20 that is precise within given confines

v1.0.1(7mo ago)14MITPHPPHP ^8.2CI passing

Since Nov 26Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/navarr/precise-clocks)[ Packagist](https://packagist.org/packages/navarr/precise-clocks)[ GitHub Sponsors](https://github.com/navarr)[ RSS](/packages/navarr-precise-clocks/feed)WikiDiscussions main Synced 2d ago

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

Specified Precision Clocks (PSR-20)
===================================

[](#specified-precision-clocks-psr-20)

[![Latest Stable Version](https://camo.githubusercontent.com/b1afa7b638179aa67e70278db28a160527c0fa04ebc9fdb143fe35de1b729f5c/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f707265636973652d636c6f636b732f76)](https://packagist.org/packages/navarr/precise-clocks)[![Total Downloads](https://camo.githubusercontent.com/dd76086c693a6275bfb3d7686f376be5dbc380384d5225fde8a0c52386a7ec8f/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f707265636973652d636c6f636b732f646f776e6c6f616473)](https://packagist.org/packages/navarr/precise-clocks)[![Latest Unstable Version](https://camo.githubusercontent.com/350f92aed5744fea70473faaf4baac781fc70723d829a6b3d083d83490ec77ac/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f707265636973652d636c6f636b732f762f756e737461626c65)](https://packagist.org/packages/navarr/precise-clocks)[![License](https://camo.githubusercontent.com/5a9b4eb278fafd36f5e26b7d0f523a838896683c86ad59ee147707bcd6b5df97/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f707265636973652d636c6f636b732f6c6963656e7365)](https://packagist.org/packages/navarr/precise-clocks)
[![Tests](https://github.com/navarr/precise-clocks/actions/workflows/commit.yml/badge.svg)](https://github.com/navarr/precise-clocks/actions/workflows/commit.yml/badge.svg)[![Code Coverage](https://camo.githubusercontent.com/1cf4119c54ce13a92700b34562572a5f241b500c1962ae453f6c9805625fc4c8/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f707265636973652d636c6f636b732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)](https://camo.githubusercontent.com/1cf4119c54ce13a92700b34562572a5f241b500c1962ae453f6c9805625fc4c8/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f707265636973652d636c6f636b732f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)[![Mutation score](https://camo.githubusercontent.com/427fc5a845cf25396bff3358474f82e7420f918e566ace40f82dd0abf188b037/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466e6176617272253246707265636973652d636c6f636b732532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/precise-clocks/main)

This library contains implementations of PSR-20 that provides a clocks that are precise to their namesake, and while in the same time to that precision, return the exact same object.

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

[](#installation)

```
composer require navarr/precise-clocks:^1

```

Usage
-----

[](#usage)

```
use Navarr\PreciseClock\MinutePrecisionClock;

$clock = new MinutePrecisionClock();
$a = $clock->now();
$b = $clock->now();

spl_object_id($a) === spl_object_id($b); // true
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance64

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

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

Total

2

Last Release

218d ago

PHP version history (2 changes)v1.0.0PHP ^8

v1.0.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/24959115e049fb1d71612462e9106b345b3e0e6126439493514018cd440e8937?d=identicon)[navarr](/maintainers/navarr)

---

Top Contributors

[![navarr](https://avatars.githubusercontent.com/u/145128?v=4)](https://github.com/navarr "navarr (13 commits)")

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/navarr-precise-clocks/health.svg)

```
[![Health](https://phpackages.com/badges/navarr-precise-clocks/health.svg)](https://phpackages.com/packages/navarr-precise-clocks)
```

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[stella-maris/clock

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

7947.5M2](/packages/stella-maris-clock)[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

20238.6k7](/packages/elie29-zend-phpdi-config)

PHPackages © 2026

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