dwo/ecb_exchange_rates

grep foreign exchange reference rates from the ecb

v1.0.1 2015-04-16 16:08 UTC

This package is not auto-updated.

Last update: 2024-11-09 17:40:30 UTC


README

Build Status Coverage Status

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)
     ...
   )