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

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

sonsofphp/clock
===============

Provides a standard way of accessing datetime functions

v0.3.10(1y ago)23.2k2MITPHPPHP &gt;=8.2

Since May 6Pushed 9mo agoCompare

[ Source](https://github.com/SonsOfPHP/clock)[ Packagist](https://packagist.org/packages/sonsofphp/clock)[ Docs](https://github.com/SonsOfPHP/clock)[ GitHub Sponsors](https://github.com/sponsors/JoshuaEstes)[ Fund](https://tidelift.com/subscription/pkg/packagist-sonsofphp-sonsofphp)[ RSS](/packages/sonsofphp-clock/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (25)Used By (0)

Sons of PHP - Clock Component
=============================

[](#sons-of-php---clock-component)

Lightweight implementation of a clock interface that can be used to abstract datetime and makes it easier to test.

Learn More
----------

[](#learn-more)

- [Documentation](https://docs.sonsofphp.com/components/clock/)
- [Contributing](https://docs.sonsofphp.com/contributing/)
- [Report Issues](https://github.com/SonsOfPHP/sonsofphp/issues?q=is%3Aopen+is%3Aissue+label%3AClock) and [Submit Pull Requests](https://github.com/SonsOfPHP/sonsofphp/pulls?q=is%3Aopen+is%3Apr+label%3AClock) in the [Mother Repository](https://github.com/SonsOfPHP/sonsofphp)
- Get Help &amp; Support using [Discussions](https://github.com/orgs/SonsOfPHP/discussions) or [Discord](https://discord.gg/sdVxNhFqND)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance49

Moderate activity, may be stable

Popularity22

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

Recently: every ~149 days

Total

24

Last Release

578d ago

PHP version history (4 changes)v0.1.1PHP &gt;=7.4

v0.3.5PHP &gt;=8.0

v0.3.6PHP &gt;=8.1

v0.3.9PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/447419?v=4)[Joshua Estes](/maintainers/joshuaestes)[@JoshuaEstes](https://github.com/JoshuaEstes)

---

Top Contributors

[![JoshuaEstes](https://avatars.githubusercontent.com/u/447419?v=4)](https://github.com/JoshuaEstes "JoshuaEstes (428 commits)")

---

Tags

clockdatedatetimephpphp-clockphp-librarypsr-20sons-of-phpsonsofphptimeclockpsr20psr-20clock-interfacedatetimetimedateiso8601iso-8601

### Embed Badge

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

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

431168.9M205](/packages/symfony-clock)[beste/clock

A collection of Clock implementations

7423.3M20](/packages/beste-clock)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[fresh/datetime

PHP library that provides additional functions for processing dates &amp; times.

17513.8k2](/packages/fresh-datetime)

PHPackages © 2026

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