pekkis / currency-converter
货币转换
v0.1.0
2015-11-13 13:52 UTC
Requires
- php: >=5.5.0
- mathiasverraes/money: ^1.2
- nategood/httpful: ^0.2.20
- tedivm/stash: ^0.13.1
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-09-14 19:03:51 UTC
README
一个用于货币间转换的库
使用场景
没有找到好的库(使用货币类/可靠的数学)来进行货币转换。需要这样一个库,所以自己制作了一个。
快速开始
<?php $converter = new CurrencyConverter( new FixerIoRateProvider() ); $money = new Money(2500, new Currency('EUR')); $sek = $converter->convert($money, 'SEK'); ## There's more Caching and different providers and such. Read code. Kood kood. Pull requests are welcome.