lok0613/exchange-rates-api-io

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2021-09-23 09:35 UTC

This package is not auto-updated.

Last update: 2024-09-20 22:43:19 UTC


README

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.