library exchange_rate_adapter
grep foreign exchange reference rates from the ecb and openexchangerates.org
dwo/exchange_rate_adapter
grep foreign exchange reference rates from the ecb and openexchangerates.org
- Friday, September 30, 2016
- by dave
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
, (*1)
ExchangeRateAdapter
Grep the Euro foreign exchange reference rates from the ECB or openexchangerates.org, (*2)
- https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html
- http://openexchangerates.org/
Installation
Installation with Composer, (*3)
composer require dwo/exchange_rate_adapter
Usage with ECB
$adapter = new EcbExchangeRateAdapter();
$exchangeRates = $adapter->getAll();
Usage with openexchangerates.org
$adapter = new OpenExchangeRateAdapter($yourAppId);
$exchangeRates = $adapter->getAll();
You will receive an array with the available currencies, (*4)
array(31) {
["USD"]=>
float(1.0711)
["JPY"]=>
float(127.64)
...
)
dev-master
9999999-dev
https://github.com/davewwww
grep foreign exchange reference rates from the ecb and openexchangerates.org
Sources
Download
MIT
The Requires
currency
convert
currencies
exchange
euro
dollar
rates
openexchangerates
ecb
exchange-rate
v1.0.0
1.0.0.0
https://github.com/davewwww
grep foreign exchange reference rates from the ecb and openexchangerates.org
Sources
Download
MIT
The Requires
currency
convert
currencies
exchange
euro
dollar
rates
openexchangerates
ecb
exchange-rate