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.
Follow the full documentation for this package
composer require serhii/short-number
The Short Number project is licensed under the MIT License