PHP code example of orlac / openexchangerates
1. Go to this page and download the library: Download orlac/openexchangerates library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
orlac / openexchangerates example snippets
$appId = '<your_app_id>';
$baseUri = 'https://openexchangerates.org/api/';
$client = new ApiClient(new CurlConnect($appId, $baseUri));
$rsp = $client->request(Endpoints::Latest->value, new DtoBuilder());
var_dump($rsp);