PHPackages                             jizuscreed/time-approximator - 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. jizuscreed/time-approximator

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

jizuscreed/time-approximator
============================

A small library to generate short approximate human friendly time description. Inspired by https://github.com/martinandert/damals

0.1(6y ago)04BSDPHPPHP ^7.1.3CI failing

Since Mar 19Pushed 6y agoCompare

[ Source](https://github.com/jizuscreed/time-approximator)[ Packagist](https://packagist.org/packages/jizuscreed/time-approximator)[ RSS](/packages/jizuscreed-time-approximator/feed)WikiDiscussions master Synced today

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

Time approximator
=================

[](#time-approximator)

A small library to generate short approximate human friendly time description. Inspired by

Installation
------------

[](#installation)

```
composer require jizuscreed/time-approximator

```

Instantiation
-------------

[](#instantiation)

```
$timeApproximator = new jizuscreed\TimeApproximator\TimeApproximator(new \jizuscreed\TimeApproximator\Languages\Russian());
```

It can
------

[](#it-can)

```
$this->timeApproximator->getDescriptionFor(20); // полминуты
$this->timeApproximator->getDescriptionFor(40); // меньше чем 1 минута
$this->timeApproximator->getDescriptionFor(16*60); // 16 минут
$this->timeApproximator->getDescriptionFor(11*60); // 11 минут
$this->timeApproximator->getDescriptionFor(46*60); // примерно 1 час
$this->timeApproximator->getDescriptionFor(43*60); // 43 минуты
$this->timeApproximator->getDescriptionFor(68*60); // примерно 1 час
$this->timeApproximator->getDescriptionFor(24*60*60*15+23*60*60+15*600; // 16 дней)
```

Create language pack
--------------------

[](#create-language-pack)

Just create class in `jizuscreed\TimeApproximator\Languages` inheriting `jizuscreed\TimeApproximator\Languages\AbstractLanguagePack` and implement abstract methods

Contributing
------------

[](#contributing)

Please, send your pull requests, especially with language packs

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

2244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ddd523b9ab6c401fc8ae46c7a40c1fbffebd9c06bcda14c485eef43deda1329?d=identicon)[jizuscreed](/maintainers/jizuscreed)

---

Top Contributors

[![jizuscreed](https://avatars.githubusercontent.com/u/13093236?v=4)](https://github.com/jizuscreed "jizuscreed (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jizuscreed-time-approximator/health.svg)

```
[![Health](https://phpackages.com/badges/jizuscreed-time-approximator/health.svg)](https://phpackages.com/packages/jizuscreed-time-approximator)
```

PHPackages © 2026

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