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

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

php-pico/clock
==============

PSR-20 compliant clock package.

0.1.0(5mo ago)03MITPHPPHP ^8.4

Since Dec 10Pushed 5mo agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

README
======

[](#readme)

PSR-20 compliant clock package.

Usage
-----

[](#usage)

```
use PhpPico\Clock\Clock;

new Clock()->now(); // returns a DateTimeImmutable
```

This package is great for testing, since you can set a mock "now" which you can use when testing.

```
use PhpPico\Clock\Clock;

$testNow = new DateTimeImmutable('2025-01-01 12:00:00'); // 1st January 2025 12:00
Clock::setTestNow($testNow);

new Clock()->now(); // Returns the $testNow DateTimeImmutable
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance72

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

159d ago

### Community

Maintainers

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

---

Top Contributors

[![kevinfrom](https://avatars.githubusercontent.com/u/33836112?v=4)](https://github.com/kevinfrom "kevinfrom (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lcobucci/clock

Yet another clock abstraction

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

Decouples applications from the system clock

431168.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)
