serhii/short-number
最新稳定版本:4.3.0
Composer 安装命令:
composer require serhii/short-number
包简介
For changing the language you want to call `set` method once before calling other methods from this package.
README 文档
README
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
| Flag | Language | Code |
|---|---|---|
| 🇬🇧 | English | en |
| 🇷🇺 | Russian | ru |
| 🇺🇦 | Ukrainian | uk |
| 🇨🇳 | Chinese | zh |
| 🇯🇵 | Japanese | ja |
License
The Short Number project is licensed under the MIT License
Contribute
With Container Engine
Note
If you use 🐳 Docker instead of 🦦 Podman, just replace podman-compose with docker compose, and podman with docker in code examples below.
Build an Image
To build an image, navigate to the root of the project and run this command:
podman-compose build app
Run the Container
To run a container, navigate to the root of the project and run this command:
podman-compose run --rm app
Cleanup
You can remove networks and cleanup by running this command:
podman-compose down
统计信息
- 总下载量: 3.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-16