ExchangeRatesApiIO, PHP API

CI

use Lok0613\ExchangeRatesApiIo;
use Lok0613\ExchangeRatesApiIo\Currency;

$exchange_rates_api_io = new ExchangeRatesApiIo('access-token');
$rates = $exchange_rates_api_io->latestRates(new Currency('EUR'))->getRates();
$rates[0]->getCurrency()->getName(); // 'AED'
$rates[0]->getRate(); // 4.306

Installation

~$ composer require lok0613/exchange-rates-api-io

Test

~$ ./vendor/bin/phpunit tests

License

ExchangeRatesApiIO is made available under the MIT License (MIT). Please see License File for more information.