New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

pharaonic/laravel-readable

Readable numbers, dates, durations and file sizes for Laravel, as static methods, helpers and Blade directives.
89,774 23
Install
composer require pharaonic/laravel-readable
Latest Version:13.0.0
PHP:>=8.3 <8.6
Laravel:13
Older releases:6 – 12
License:MIT
Last Updated:Oct 11, 2026
Links: GitHub  ·  Packagist
Maintainer: Pharaonic

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.

Related Packages

ngangchill/blade

This is a standalone package for laravel blade with some extra function such as...

33 0
pharaonic/laravel-helpers

Laravel - Classes, Traits, Functions

1,741 2
eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

11,686,038 831
eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

33,867 10
jangaraev/laravel-blade-cache

Handy package to cache blade files

922 3

Version History

Version Released PHP Laravel License
13.0.0 >=8.3 <8.6 ^13.0 MIT
12.0.0 >=8.2 <8.6 ^12.0 MIT
11.0.0 >=8.2 <8.5 ^11.0 MIT
10.0.0 >=8.1 <8.4 ^10.0 MIT
9.0.0 >=8.0 <8.3 ^9.33 MIT