PHPackages                             pear/date\_humandiff - 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. pear/date\_humandiff

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

pear/date\_humandiff
====================

Generate textual time differences that are easily understandable by humans.

v0.5.0(12y ago)2523.4k↓50%8LGPLPHP

Since Mar 23Pushed 6y ago6 watchersCompare

[ Source](https://github.com/pear/Date_HumanDiff)[ Packagist](https://packagist.org/packages/pear/date_humandiff)[ RSS](/packages/pear-date-humandiff/feed)WikiDiscussions master Synced 1mo ago

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

Date\_HumanDiff
===============

[](#date_humandiff)

Generate textual time differences that are easily understandable by humans.

The class supports minutes, hours, days, weeks, months and years.

Examples:

- 5 seconds ago -&gt; just now
- 65 seconds ago -&gt; a minute ago
- 120 seconds ago -&gt; 2 minutes ago
- a week ago
- 3 weeks ago
- a month ago
- 8 months ago
- a year ago
- 5 years ago

Usage
-----

[](#usage)

```

```

Supported languages
-------------------

[](#supported-languages)

- German
- English
- Greek
- Persian
- Russian

Use a language with `setLocale()`:

```
$dh = new Date_HumanDiff();
$dh->setLocale('de');
echo $dh->get(time() - 60 * 5) . "\n"; //shows "vor 5 Minuten"
```

Other libraries
---------------

[](#other-libraries)

Javascript; library that's been used as base for Date\_HumanDiffJavascript; with localization optionsPython

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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

4430d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fe5dd107a2c93ac8c0d54954ec0cc961a8b88f20dbc6d745acc7e75f4b56704?d=identicon)[CloCkWeRX](/maintainers/CloCkWeRX)

---

Top Contributors

[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (40 commits)")[![alirezameskin](https://avatars.githubusercontent.com/u/36147?v=4)](https://github.com/alirezameskin "alirezameskin (4 commits)")[![akDeveloper](https://avatars.githubusercontent.com/u/332155?v=4)](https://github.com/akDeveloper "akDeveloper (3 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (2 commits)")[![JoshyPHP](https://avatars.githubusercontent.com/u/317712?v=4)](https://github.com/JoshyPHP "JoshyPHP (1 commits)")[![kenguest](https://avatars.githubusercontent.com/u/234118?v=4)](https://github.com/kenguest "kenguest (1 commits)")[![coderbyheart](https://avatars.githubusercontent.com/u/188915?v=4)](https://github.com/coderbyheart "coderbyheart (1 commits)")[![arokettu](https://avatars.githubusercontent.com/u/963485?v=4)](https://github.com/arokettu "arokettu (1 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (1 commits)")[![AgelxNash](https://avatars.githubusercontent.com/u/1748872?v=4)](https://github.com/AgelxNash "AgelxNash (1 commits)")

---

Tags

datelibraryphptime

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pear-date-humandiff/health.svg)

```
[![Health](https://phpackages.com/badges/pear-date-humandiff/health.svg)](https://phpackages.com/packages/pear-date-humandiff)
```

###  Alternatives

[pear/pear-core-minimal

Minimal set of PEAR core files to be used as composer dependency

8073.0M69](/packages/pear-pear-core-minimal)

PHPackages © 2026

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