pekkis / currency-converter
Currency conversion
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-10-26 19:37:53 UTC
README
A library for converting between currencies
Use case
Didn't find a good library (utilizing money class / reliable math) for currency conversion. Needed one. Made one.
Quickstart
<?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.