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
Requires
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- phpunit/phpunit: ^9
This package is not auto-updated.
Last update: 2025-04-19 01:27:30 UTC
README
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.