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
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
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
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 | |
| 8.0.0 | >=8.0 <8.2 | ^8.75 | MIT | |
| 7.0.0 | >=8.0 <8.1 | ^7.30 | MIT | |
| 6.0.0 | >=8.0 <8.1 | ^6.20 | MIT | |
| 1.0.6 | >=7.2 | >=6.0 | MIT | |
| 1.0.5 | >=7.2 | >=6.0 | MIT | |
| 1.0.4 | >=7.2 | >=6.0 | MIT | |
| 1.0.3 | >=7.2 | >=6.0 | MIT | |
| 1.0.2 | >=7.2 | >=6.0 | MIT | |
| 1.0.1 | >=7.2 | >=6.0 | MIT | |
| 1.0.0 | >=7.2 | >=6.0 | MIT |
