serhii/short-number

For changing the language you want to call `set` method once before calling other methods from this package.

4.1.0 2025-01-02 13:50 UTC

This package is auto-updated.

Last update: 2025-02-02 13:56:33 UTC


README

Short number Total Downloads License

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 and can be easily extended with new languages.

Follow the full documentation for this package

Quick Start

composer require serhii/short-number

Supported Languages

License

The Short Number project is licensed under the MIT License