PHPackages                             poldixd/human-readable-time - 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. [Templating &amp; Views](/categories/templating)
4. /
5. poldixd/human-readable-time

ActiveLibrary[Templating &amp; Views](/categories/templating)

poldixd/human-readable-time
===========================

1.4.0(4mo ago)0471MITPHPPHP ^8.1CI passing

Since May 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/poldixd/human-readable-time)[ Packagist](https://packagist.org/packages/poldixd/human-readable-time)[ RSS](/packages/poldixd-human-readable-time/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (5)Versions (10)Used By (0)

Show date time or human readable time 🕐 👀
=========================================

[](#show-date-time-or-human-readable-time--)

This package shows date time or human readable time. You can adjust the exact time when the package shows the date time instead the human readable time.

Human readable time example:

```
$datetime = \Carbon\Carbon::parse('2021-05-05 10:30:00')->subMinutes(15);

```

Output:

```

15 minutes before
```

Date time example:

```
$datetime = \Carbon\Carbon::parse('2021-05-05 10:30:00')->subMinutes(90);

```

Output:

```

2021-05-05 09:00:00
```

You can adjust the time when the date time is displayed. The default time is 1 hour.

```
$datetime = \Carbon\Carbon::parse('2021-05-05 10:30:00')->subMinutes(120);

```

Output:

```

2 hour before
```

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

[](#requirements)

- Laravel 9.x or Laravel 10.x
- PHP 8.x

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

[](#installation)

You can install the package via composer:

```
composer require poldixd/human-readable-time
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Nils Poltmann](https://github.com/poldixd)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance85

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

6

Last Release

132d ago

Major Versions

0.0.1 → 1.0.02022-04-03

PHP version history (3 changes)0.0.1PHP ^7.4|^8.0

1.0.0PHP ^8.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/06ee838e882815b78c994ebb11877afddc8955ec84886af6174e64e4f002d67b?d=identicon)[poldixd](/maintainers/poldixd)

---

Top Contributors

[![poldixd](https://avatars.githubusercontent.com/u/695449?v=4)](https://github.com/poldixd "poldixd (31 commits)")

---

Tags

bladecarbondatetimelaraveltime

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/poldixd-human-readable-time/health.svg)

```
[![Health](https://phpackages.com/badges/poldixd-human-readable-time/health.svg)](https://phpackages.com/packages/poldixd-human-readable-time)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[illuminate/view

The Illuminate View package.

13047.0M2.2k](/packages/illuminate-view)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725172.4k14](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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