Search by

pharaonic / laravel-readable

Pharaonic

Readable numbers, dates, durations and file sizes for Laravel, as static methods, helpers and Blade directives.

Package info

github.com/Pharaonic/laravel-readable

Documentation

pkg:composer/pharaonic/laravel-readable

Fund package maintenance!

MoamenEltouny

Buy Me A Coffee

Statistics

Installs: 87 290

Dependents: 3

Suggesters: 0

Stars: 22

Open Issues: 1

13.0.0 2026-10-11 18:54 UTC

README

PHP Version : 8.3 | 8.4 | 8.5 Laravel Version : 13.x License Build
Source Packagist Version Packagist Downloads

Readable numbers, dates, durations and file sizes for Laravel.

Powered by PHP Readable.

Installation

composer require pharaonic/laravel-readable

The service provider is registered automatically. There is nothing to publish.

Usage

use Pharaonic\Laravel\Readable\Readable;

Readable::getCompactNumber(77700);  // "77K"
Readable::getDuration(3661);        // "1 hour 1 minute 1 second"
readable_file_size(1500);           // "1.5 KB"
@readableDate($post->published_at) ยท @readableCompactNumber($post->views) views

Documentation

Full documentation: Laravel Readable Documentation.

Support & Security

See SUPPORT.md and SECURITY.md. Contributions are welcome; see CONTRIBUTING.md.

License

MIT. See LICENSE.