tigranmaestro/open-exchange-rates-api-client

PHP library to consume OpenExchangeRates API

dev-master 2016-09-30 09:15 UTC

This package is not auto-updated.

Last update: 2025-06-25 23:00:46 UTC


README

This package is a slightly OpenExchangeRates API wrapper. Right now it only supports latest.json endpoint

Usage - simple

Simplest possible use case:

$wrapper = new \TigranMaestro\OpenExchangeRatesPHPClient\Wrapper('__YOUR_APP_ID__');
$wrapper->setHttpClient();

$api = $wrapper->createLatestAPI();
$api->setSymbols([
    'EUR',
    'AMD'
]);

$result = $api->call();

echo "<pre>";
var_dump($result);
echo "</pre>";

That's it, this is all you need to get started.