PHPackages                             subjective-php/durations - 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. subjective-php/durations

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

subjective-php/durations
========================

Collection of classes to assist with units of time.

v1.1.0(3y ago)384.9k↓50.6%1MITPHPPHP ^7.0 || ^8.0

Since Feb 1Pushed 3y agoCompare

[ Source](https://github.com/subjective-php/durations)[ Packagist](https://packagist.org/packages/subjective-php/durations)[ RSS](/packages/subjective-php-durations/feed)WikiDiscussions master Synced 2d ago

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

durations
=========

[](#durations)

Collection of classes to assist with units of time.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fb7ca7168895af30f3d278f0e66521029d2fa8e33f450a999d1f099872eeef7b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7375626a6563746976652d7068702f6475726174696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/subjective-php/durations/?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/e5e63bb28865afa5e24d9fb2c81501e4a6fa92fabb438d36d075845085a222b7/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f762f737461626c65)](https://packagist.org/packages/subjective-php/durations)[![Latest Unstable Version](https://camo.githubusercontent.com/b75b1ee97c39af44bb08ecc4f690dd09ee34c8de87bb3f56df0ad279668e12ea/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f762f756e737461626c65)](https://packagist.org/packages/subjective-php/durations)[![License](https://camo.githubusercontent.com/789b8e37fee465cb07d05d1963f0afa765c9862f9aba3e3f0f8c6e892069357e/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f6c6963656e7365)](https://packagist.org/packages/subjective-php/durations)

[![Total Downloads](https://camo.githubusercontent.com/18a86912bbe0a009b8a6bc3dc3daf36750472fbc0f12215d11d05b3cdc106ffb/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f646f776e6c6f616473)](https://packagist.org/packages/subjective-php/durations)[![Daily Downloads](https://camo.githubusercontent.com/7a8f53858aa121b4eb9653b82851827f4a8d084599d8e89446ea004f8e7b13e4/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f642f6461696c79)](https://packagist.org/packages/subjective-php/durations)[![Monthly Downloads](https://camo.githubusercontent.com/e90b51aeacd2e8e8dd27fd0d3a9c48889f12d3fd5353c384211aae444df7d5ab/68747470733a2f2f706f7365722e707567782e6f72672f7375626a6563746976652d7068702f6475726174696f6e732f642f6d6f6e74686c79)](https://packagist.org/packages/subjective-php/durations)

Requirements
------------

[](#requirements)

Requires PHP 7.0 (or later).

Composer
--------

[](#composer)

To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `subjective-php/durations` to your project's `composer.json` file such as:

```
composer require subjective-php/durations
```

Contact
-------

[](#contact)

Developers may be contacted at:

- [Pull Requests](https://github.com/subjective-php/durations/pulls)
- [Issues](https://github.com/subjective-php/durations/issues)

Project Build
-------------

[](#project-build)

With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:

```
composer install
./vendor/bin/phpunit
./vendor/bin/phpcs
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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 ~1322 days

Total

2

Last Release

1387d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.1.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8d287c8b6f54200e7c10080794152779dc84f043fcc35f43ea8d1e9c8818aa0?d=identicon)[chadicus](/maintainers/chadicus)

---

Top Contributors

[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (17 commits)")[![chrisryan](https://avatars.githubusercontent.com/u/704326?v=4)](https://github.com/chrisryan "chrisryan (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/subjective-php-durations/health.svg)

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

###  Alternatives

[lipemat/phpstan-wordpress

Phpstan extension for working with WordPress

1462.8k1](/packages/lipemat-phpstan-wordpress)

PHPackages © 2026

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