dwo/exchange_rate_adapter

grep foreign exchange reference rates from the ecb and openexchangerates.org

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dwo/exchange_rate_adapter

v1.0.0 2016-09-30 17:07 UTC

This package is not auto-updated.

Last update: 2025-10-12 01:56:25 UTC


README

Build Status Coverage Status

ExchangeRateAdapter

Grep the Euro foreign exchange reference rates from the ECB or openexchangerates.org

Installation

Installation with Composer

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

   array(31) {
     ["USD"]=>
     float(1.0711)
     ["JPY"]=>
     float(127.64)
     ...
   )