Looking to hire Laravel developers? Try LaraJobs

laravel-readable maintained by pharaonic

Description
Readable numbers, dates, durations and file sizes for Laravel, as static methods, helpers and Blade directives.
Last update
2026/10/11 23:58 (dev-develop)
License
Links
Downloads
90 924

Comments
comments powered by Disqus

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.