Search by

midrix / timeago

midrixgodwinvimal

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

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

This package is not auto-updated.

Last update: 2026-09-17 09:50:17 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