Skip to content

Get Started ​

This lightweight package shortens numbers to a compact representation. For example, 1234 will be formatted as 1k, and 20,244,023 as 20m. The package supports multiple languages and uses English by default.

Read More

For more details, see "What is Short Number?".

Quick Start ​

To use Short Number, install it with Composer and PHP 8.1 or later.

bash
composer require serhii/short-number:^4.0

Supported PHP Versions ​

The list of all supported PHP versions: