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(2mo ago)0460MITPHPPHP ^8.1CI passing

Since May 5Pushed 2mo 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 1mo ago

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 93% of packages

Maintenance85

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

80d 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.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[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.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

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