PHPackages                             redmatter/chrono - 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. redmatter/chrono

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

redmatter/chrono
================

Accurate, testable and consistent API for clocks and times

v1.0.0(5y ago)14MITPHPPHP &gt;=5.4.0CI failing

Since Aug 14Pushed 1mo agoCompare

[ Source](https://github.com/redmatter/php-chrono)[ Packagist](https://packagist.org/packages/redmatter/chrono)[ RSS](/packages/redmatter-chrono/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

PHP Chrono
==========

[](#php-chrono)

> **ARCHIVED** - This repository is no longer active and is not maintained.

[![Build Status](https://camo.githubusercontent.com/94a33b58751c4ce9a5395e99730849716f6c38c36dcb0317321d11967322d8d5/68747470733a2f2f7472617669732d63692e636f6d2f636f64656d656469632d6f73732f7068702d6368726f6e6f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/codemedic-oss/php-chrono)

Clock and time utilities with focus on accuracy and testability.

The design is influenced by [`chrono`](https://en.cppreference.com/w/cpp/chrono) library in C++ and [`time.Duration`](https://golang.org/pkg/time/) library in golang.

The one reason, if you need convincing, to use this library would be to enhance the testability of your code that relies on system-time. See [examples](examples).

### API Reference

[](#api-reference)

Documentation can be [found here](docs/phpdoc.md).

How to contribute?
==================

[](#how-to-contribute)

Please feel free to fork and submit a pull request. Bug fixes, improvements, unit-tests and usability comments are most welcome.

If you are to contribute code, please do log an issue before starting to work on the code. Your changes should come with working unit tests; all tests must pass.

Coding standard followed here is `PSR-2`.

License
-------

[](#license)

This library is licensed under [MIT license](LICENSE).

Status
------

[](#status)

This repository has been archived and is no longer under active development or maintenance. No new issues, pull requests, or contributions will be accepted.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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 ~5 days

Total

4

Last Release

2131d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/482e4d123ddfbe5ed61fd256f7ed0eeb2ac086175469960d1e04637e0f59f85f?d=identicon)[redmatter](/maintainers/redmatter)

---

Top Contributors

[![codemedic](https://avatars.githubusercontent.com/u/691011?v=4)](https://github.com/codemedic "codemedic (27 commits)")[![yuriivatsyknb](https://avatars.githubusercontent.com/u/186833077?v=4)](https://github.com/yuriivatsyknb "yuriivatsyknb (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/redmatter-chrono/health.svg)

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[oxid-esales/oxideshop-metapackage-ce

This is OXID eShop compilation metapackage.

13500.5k21](/packages/oxid-esales-oxideshop-metapackage-ce)

PHPackages © 2026

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