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

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

navarr/wall-clock
=================

PSR-20 implementation that returns the current wall (system) time

v1.0.0(3y ago)11201MITPHPPHP ^8

Since Nov 26Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

Wall Clock (PSR-20)
===================

[](#wall-clock-psr-20)

[![Latest Stable Version](https://camo.githubusercontent.com/502f646181f8963fb5b2ebcc782910deb8c52c359f9353e7983b13547e156c98/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f77616c6c2d636c6f636b2f76)](https://packagist.org/packages/navarr/wall-clock)[![Total Downloads](https://camo.githubusercontent.com/43b3b24ed7a80a0ff5294c19d809b92504ec01dc621b15a1ae0927126f5b3ef3/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f77616c6c2d636c6f636b2f646f776e6c6f616473)](https://packagist.org/packages/navarr/wall-clock)[![Latest Unstable Version](https://camo.githubusercontent.com/0ff30ceab052d757c5c444e29f832ab557564eb1f5ce74a6d971a68e7233b528/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f77616c6c2d636c6f636b2f762f756e737461626c65)](https://packagist.org/packages/navarr/wall-clock)[![License](https://camo.githubusercontent.com/0c1a784cb5dead30872826f3b4a2ac62b62dc5237e28aa12c91acbf49328d04b/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f77616c6c2d636c6f636b2f6c6963656e7365)](https://packagist.org/packages/navarr/wall-clock)
[![Tests](https://github.com/navarr/wall-clock/actions/workflows/commit.yml/badge.svg)](https://github.com/navarr/wall-clock/actions/workflows/commit.yml/badge.svg)[![Code Coverage](https://camo.githubusercontent.com/d311faba2fe78e15b9a35cbda5b0e67030ba62a0c078342db5e0bea89daf00c4/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f77616c6c2d636c6f636b2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)](https://camo.githubusercontent.com/d311faba2fe78e15b9a35cbda5b0e67030ba62a0c078342db5e0bea89daf00c4/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f77616c6c2d636c6f636b2f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)[![Mutation Score](https://camo.githubusercontent.com/fa8bf5f0087f4f02ef4d71bf0a644badfc0055c952d1b85703a2837a506c825d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466e617661727225324677616c6c2d636c6f636b2532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/wall-clock/main)

This library contains an implementation of PSR-20 that provides a new DateTimeImmutable instance everytime its called

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

[](#installation)

```
composer require navarr/wall-clock:^1

```

Usage
-----

[](#usage)

```
use Navarr\WallClock\WallClock;

$clock = new WallClock();

$clock->now()->format('Y-m-d H:i:s') === date('Y-m-d H:i:s')
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1267d ago

### 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 (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/navarr-wall-clock/health.svg)](https://phpackages.com/packages/navarr-wall-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)
