laravel-readable maintained by pharaonic
Description
Readable numbers, dates, durations and file sizes for Laravel, as static methods, helpers and Blade directives.
Author
Last update
2026/10/11 23:58
(dev-develop)
License
Downloads
90 924
Tags
Last update
2026/10/11 23:58
License
Require
- php >=8.3 <8.6
- illuminate/support ^13.0
- illuminate/view ^13.0
- pharaonic/php-readable ~8.3.2 || ~8.4.2 || ~8.5.2
Last update
2026/10/11 20:54
License
Require
- php >=8.3 <8.6
- illuminate/support ^13.0
- illuminate/view ^13.0
- pharaonic/php-readable ~8.3.2 || ~8.4.2 || ~8.5.2
Last update
2026/10/11 20:54
License
Require
- php >=8.3 <8.6
- illuminate/support ^13.0
- illuminate/view ^13.0
- pharaonic/php-readable ~8.3.2 || ~8.4.2 || ~8.5.2
Last update
2026/10/11 20:54
License
Require
- php >=8.2 <8.6
- illuminate/support ^12.0
- illuminate/view ^12.0
- pharaonic/php-readable ~8.2.2 || ~8.3.2 || ~8.4.2 || ~8.5.2
Last update
2026/10/11 20:54
License
Require
- php >=8.2 <8.6
- illuminate/support ^12.0
- illuminate/view ^12.0
- pharaonic/php-readable ~8.2.2 || ~8.3.2 || ~8.4.2 || ~8.5.2
Last update
2026/10/11 20:54
License
Require
- php >=8.2 <8.5
- illuminate/support ^11.0
- illuminate/view ^11.0
- pharaonic/php-readable ~8.2.2 || ~8.3.2 || ~8.4.2
Last update
2026/10/11 20:54
License
Require
- php >=8.2 <8.5
- illuminate/support ^11.0
- illuminate/view ^11.0
- pharaonic/php-readable ~8.2.2 || ~8.3.2 || ~8.4.2
Last update
2026/10/11 20:54
License
Require
- php >=8.1 <8.4
- illuminate/support ^10.0
- illuminate/view ^10.0
- pharaonic/php-readable ~8.1.2 || ~8.2.2 || ~8.3.2
Last update
2026/10/11 20:54
License
Require
- php >=8.1 <8.4
- illuminate/support ^10.0
- illuminate/view ^10.0
- pharaonic/php-readable ~8.1.2 || ~8.2.2 || ~8.3.2
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.3
- illuminate/support ^9.33
- illuminate/view ^9.33
- pharaonic/php-readable ~8.0.3 || ~8.1.2 || ~8.2.2
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.3
- illuminate/support ^9.33
- illuminate/view ^9.33
- pharaonic/php-readable ~8.0.3 || ~8.1.2 || ~8.2.2
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.2
- illuminate/support ^8.75
- illuminate/view ^8.75
- pharaonic/php-readable ~8.0.3 || ~8.1.2
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.2
- illuminate/support ^8.75
- illuminate/view ^8.75
- pharaonic/php-readable ~8.0.3 || ~8.1.2
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.1
- illuminate/support ^7.30
- illuminate/view ^7.30
- pharaonic/php-readable ~8.0.3
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.1
- illuminate/support ^7.30
- illuminate/view ^7.30
- pharaonic/php-readable ~8.0.3
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.1
- illuminate/support ^6.20
- illuminate/view ^6.20
- pharaonic/php-readable ~8.0.3
Last update
2026/10/11 20:54
License
Require
- php >=8.0 <8.1
- illuminate/support ^6.20
- illuminate/view ^6.20
- pharaonic/php-readable ~8.0.3
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.