midrix / timeago
A production-ready PHP/Laravel package that converts dates into human-readable relative time.
dev-master
2026-08-05 10:37 UTC
Requires
- php: ^8.2
- illuminate/support: ^10.0|^11.0|^12.0
- nesbot/carbon: ^2.62.1|^3.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.0|^11.0
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