tiny-blocks/currency
最新稳定版本:2.2.1
Composer 安装命令:
composer require tiny-blocks/currency
包简介
Value Object representing a currency using ISO-4217 specifications.
README 文档
README
Overview
Value Object representing a currency using ISO-4217 specifications.
Installation
composer require tiny-blocks/currency
How to use
The library exposes a concrete implementation through the Currency enum. Besides, the alphabetic code, you can
get the default amount fraction digits for the respective currency.
$currency = Currency::USD; $currency->name; # USD $currency->value; # USD $currency->getFractionDigits(); # 2
License
Currency is licensed under MIT.
Contributing
Please follow the contributing guidelines to contribute to the project.
统计信息
- 总下载量: 21.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-25