zhanang19 / human-readable-number
This package will provide a simple helper to format a number into a human friendly number
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 3
pkg:composer/zhanang19/human-readable-number
Requires
- illuminate/support: ^5.5 || ^6.0 || ^7.0
This package is auto-updated.
Last update: 2025-10-04 20:20:23 UTC
README
This package will provide a simple helper to format a number into a human friendly number
Installation
Run command composer require zhanang19/human-readable-number
to install this package
This package is tested only in Laravel 7
Usage
Only one parameter needed, the number. Parameter accepted type is string, float, and int. There is 3 ways to use this package:
- Calling static method
\Zhanang19\HumanReadableNumber\HumanReadableNumber::format(123); // 123 \Zhanang19\HumanReadableNumber\HumanReadableNumber::format(12300); // 12K+
- Use a helper function
readablenumber(12312); // 12K+
- Use blade directive
// view.blade.php @readableNumber(12312) // 12K+