midrix/timeago

A production-ready PHP/Laravel package that converts dates into human-readable relative time.

Maintainers

Package info

github.com/midrixofficial/timeago

pkg:composer/midrix/timeago

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-08-05 10:37 UTC

This package is not auto-updated.

Last update: 2026-08-06 09:12:04 UTC


README

A production-ready PHP/Laravel package that converts dates into human-readable relative time (TimeAgo).

Installation

composer require midrix/timeago

Usage

use Midrix\Timeago\Timeago;

// Using the Facade
echo Timeago::make($date)->toString();

// Using the helper
echo timeago($date);

// Using Carbon macro
echo now()->subDays(5)->timeAgo();

Configuration

Publish the config file:

php artisan vendor:publish --tag=timeago-config