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.3.3(1w ago)08MITPHPPHP ^8.5

Since Dec 10Pushed 1w 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 today

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

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

[](#php-picoclock)

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

35

—

LowBetter than 77% of packages

Maintenance84

Actively maintained with recent releases

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

Every ~39 days

Recently: every ~0 days

Total

6

Last Release

10d ago

PHP version history (2 changes)0.1.0PHP ^8.4

0.2.0PHP ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33836112?v=4)[Kevin From](/maintainers/kevinfrom)[@kevinfrom](https://github.com/kevinfrom)

---

Top Contributors

[![kevinfrom](https://avatars.githubusercontent.com/u/33836112?v=4)](https://github.com/kevinfrom "kevinfrom (13 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

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k51](/packages/ecotone-ecotone)[symfony/clock

Decouples applications from the system clock

436205.7M390](/packages/symfony-clock)[lcobucci/clock

Yet another clock abstraction

800207.5M163](/packages/lcobucci-clock)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M87](/packages/mcp-sdk)

PHPackages © 2026

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