Prototype
PHP Readable or Laravel Readable
Do you need human-friendly formatting in plain PHP, or in Laravel views?
Facts checked against the source on . Releases, requirements and lines are read live from each package's latest release.
| PHP Readable | Laravel Readable | |
|---|---|---|
| Choose it when | You format values outside Laravel, or need money or the array and string helpers. | You format values in Blade views, including dates and relative times. |
| What it formats | Numbers, bytes, money and durations, plus small array and string inspection helpers. Sourcefor What it formats (opens in a new tab) | Numbers, dates and times, relative dates, durations and file sizes. Sourcefor What it formats (opens in a new tab) |
| API style | One class per kind: Number, Bytes, Money, Duration, Arr, Str. Sourcefor API style (opens in a new tab) | Static Readable::get*() methods, readable_*() helpers and @readable* Blade directives. Sourcefor API style (opens in a new tab) |
| Install | composer require pharaonic/php-readable | composer require pharaonic/laravel-readable |
| Latest release | v8.5.2 | v13.0.0 |
| Released on | 2026-10-11 | 2026-10-11 |
| Requires | PHP 8.5 | PHP 8.3 – 8.5, Laravel 13 |
| Maintained lines | v8.5.x, v8.4.x, v8.3.x, v8.2.x, v8.1.x, v8.0.x | v13.x, v12.x, v11.x, v10.x, v9.x, v8.x, v7.x, v6.x |
| Other dependencies | None | pharaonic/php-readable |
| License | MIT | MIT |
Limitations
- The two APIs differ, so moving from one to the other is not a drop-in change.
- Laravel Readable's Blade directives echo raw, unescaped output, as its 1.x directives did.
This comparison only covers Pharaonic packages and states what their code does. It doesn't rate them or measure performance. Spotted something out of date? Report it.