openclerk / fiat
该包最新版本(0.1.0)没有提供许可信息。
Openclerk中法定货币的定义和实现
0.1.0
2017-09-11 07:37 UTC
Requires
- openclerk/config: ^0.1
- openclerk/currencies: ^0.1
Requires (Dev)
- soundasleep/component-tests: dev-master
This package is auto-updated.
Last update: 2024-09-14 10:14:31 UTC
README
一个用于描述法定货币的库,由Openclerk和CryptFolio使用。
这扩展了由openclerk/currencies提供的抽象货币定义。
由于法定货币没有数字连接,我们无法像处理加密货币那样对它们做有趣的事情;该组件仅用三位代码描述法定货币。
安装
在您的项目composer.json
中包含openclerk/fiat
作为需求,并运行composer update
将其安装到您的项目中
{ "require": { "openclerk/fiat": "dev-master" } }
使用
获取指定货币的名称
$currency = new \Fiat\PolishZloty(); echo $currency->getName(); // returns "Polish złoty" echo $currency->getURL(); // returns "http://en.wikipedia.org/wiki/Polish_z%C5%82oty"
捐赠
欢迎捐赠.
贡献
欢迎贡献新货币的拉取请求。
待办事项
- 法定货币应该有资产吗?
- 自动生成README中的货币/服务列表
- 链接到CryptFolio上的实时API
- CI构建服务器和测试结果链接