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

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

rymanalu/twitter-time-ago
=========================

Displays the date in a "time ago" format like Twitter.

v1.0.0(9y ago)673MITPHPPHP &gt;=5.4

Since Dec 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rymanalu/twitter-time-ago)[ Packagist](https://packagist.org/packages/rymanalu/twitter-time-ago)[ Docs](https://github.com/rymanalu/twitter-time-ago)[ RSS](/packages/rymanalu-twitter-time-ago/feed)WikiDiscussions 1.0 Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Twitter Time Ago
================

[](#twitter-time-ago)

[![Build Status](https://camo.githubusercontent.com/b9b3a84e053e9fbe3d890386d7c66e2328435e643dc26ced6895f2c404f12466/68747470733a2f2f7472617669732d63692e6f72672f72796d616e616c752f747769747465722d74696d652d61676f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rymanalu/twitter-time-ago)

This package provides a function to parse a datetime to human readable time difference like [Twitter](https://twitter.com/).

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

[](#installation)

```
composer require rymanalu/twitter-time-ago

```

Usage
-----

[](#usage)

```
use Rymanalu\TwitterTimeAgo\TwitterTimeAgo;

$timeAgo = new TwitterTimeAgo; // or `new TwitterTimeAgo($timezone)`
echo $timeAgo->parse('2016-12-21 12:06:45');
// You can also just pass a date...
echo $timeAgo->parse('2016-12-12');

// Using static method...
echo TwitterTimeAgo::parse('2016-12-21 12:06:45');

// Using global helper...
echo twitter_time_ago($datetime);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

3428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4048e24bca6c111b9d24a6937ed5fab26e5913d8985fc8460572942cd1b71c6?d=identicon)[rymanalu](/maintainers/rymanalu)

---

Top Contributors

[![rymanalu](https://avatars.githubusercontent.com/u/6141573?v=4)](https://github.com/rymanalu "rymanalu (8 commits)")

---

Tags

twittertime ago

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cwspear/bootstrap-hover-dropdown

An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience.

1.3k153.1k](/packages/cwspear-bootstrap-hover-dropdown)[jimmiw/php-time-ago

Simple module, that displays the date in a "time ago" format

2611.1M14](/packages/jimmiw-php-time-ago)[arcanedev/seo-helper

SEO Helper is a framework agnostic package that provides tools &amp; helpers for SEO (Laravel supported).

332467.0k4](/packages/arcanedev-seo-helper)[nojimage/twitter-text-php

A library of PHP classes that provide auto-linking and extraction of usernames, lists, hashtags and URLs from tweets.

1241.9M7](/packages/nojimage-twitter-text-php)[honeystone/laravel-seo

SEO metadata and JSON-LD package for Laravel.

34744.1k](/packages/honeystone-laravel-seo)[social-links/social-links

PHP library to generate share buttons

112338.6k2](/packages/social-links-social-links)

PHPackages © 2026

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