Get Started
Lightweight package shortens given number to a short representation of it. For example 1234 will be formatted to 1k and 20244023 to 20m. Package supports multiple languages, the default it's set to English.
Read More
For more details about this library you can find on the "What is Short Number?" page.
Quick Start
To use Short Number, first, you need to install it via Composer package manager and have minimum PHP version 8.1
.
bash
composer require serhii/short-number:^4.0
Supported PHP Versions
The list of all supported PHP versions: