dwo / ecb_exchange_rates
grep foreign exchange reference rates from the ecb
Installs: 12 687
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-09 17:40:30 UTC
README
EcbExchangeRates
Grep the Euro foreign exchange reference rates from the ECB.
https://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html
Installation
Installation with Composer
composer.phar require dwo/ecb_exchange_rates
Usage
$exchangeRates = EcbExchangeRates::getAll();
You will receive an array with the available currencies
array(31) { ["USD"]=> float(1.0711) ["JPY"]=> float(127.64) ... )