PHPackages                             mdxdave/time-ago - 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. mdxdave/time-ago

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

mdxdave/time-ago
================

Displays the time has been past since a given date

1.2.0(1y ago)28.9k1MITPHP

Since Aug 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MDXDave/time-ago)[ Packagist](https://packagist.org/packages/mdxdave/time-ago)[ RSS](/packages/mdxdave-time-ago/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

TimeAgo plugin for Craft CMS 4.x
================================

[](#timeago-plugin-for-craft-cms-4x)

Displays time ago for a given timestamp value within a Craft CMS Twig template.

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

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require mdxdave/time-ago

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for TimeAgo.

Using TimeAgo
-------------

[](#using-timeago)

Just use the following code in your Twig template file:

```
    {{ entry.postDate.getTimestamp()|timeAgo }}

```

If you want to use another language than english, use:

```
    {{ entry.postDate.getTimestamp()|timeAgo("de") }}

```

Brought to you by [MDXDave](https://mdxdave.de)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~894 days

Total

4

Last Release

575d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6099976?v=4)[Dave](/maintainers/MDXDave)[@MDXDave](https://github.com/MDXDave)

---

Top Contributors

[![MDXDave](https://avatars.githubusercontent.com/u/6099976?v=4)](https://github.com/MDXDave "MDXDave (10 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (1 commits)")

---

Tags

craft3craftcmscraftcms-plugindatephptimecmsCraftcraftcmscraft-plugintimeago

### Embed Badge

![Health badge](/badges/mdxdave-time-ago/health.svg)

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

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k18](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)

PHPackages © 2026

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