mrprompt / money
货币和货币助手
1.1.0
2020-03-18 05:27 UTC
Requires
- php: >=7.3
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: 9.0.*
This package is auto-updated.
Last update: 2024-09-18 15:27:59 UTC
README
是一个库,使与货币和金钱的交互变得容易。
安装
composer install mrprompt/money
使用
use MrPrompt\Money\Currency; $money = new Currency('BRL'); $money->code(); // return the code (the same passed at constructor) $money->number(); // return the code as number, like 960. $money->name(); // return the currency name, like Real $money->countries(); // return the countries that use the currency $money->decimals(); // return the decimals used by the currency $money->symbol(); // return the symbol of the currency $money->format(1.00); // format the currency
许可
GPLv3