zhikiri / currency-converter
Library for currency exchange
Installs: 296
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/zhikiri/currency-converter
Requires (Dev)
- codeception/codeception: 1.8.*
This package is not auto-updated.
Last update: 2018-01-24 15:02:20 UTC
README
Get currency exchange rates & convert amount between currencies in ISO Alpha 3 format. There are some popular API was implemented.
- Yahoo Finance (Yahoo currency exchange API);
- fixer.io (details http://fixer.io/).
Notice: All currencies must be passed in ISO Alpha 3 format (ex. "USD" for American Dollar)
For get currency rates:
$converter = new CurrencyConverter\Converter\Yahoo();
$converter->rate("USD", "EUR");
For convert amount:
$converter = new CurrencyConverter\Converter\Yahoo();
$converter->convert("USD", "EUR", 10);