1. Go to this page and download the library: Download ranium/fixerio-php-client 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/ */
ranium / fixerio-php-client example snippets
use Ranium\Fixerio\Client;
$accessKey = '12345678901234567890';
$secure = true; // Optional, default is true (only paid plans of fixer.io supports SSL)
$config = []; // Optional, guzzle command client config that you might want to pass
$fixerio = Client::create($accessKey, $secure, $config);
$fluctuationData = $fixerio->fluctuation(
[
'start_date' => '2019-01-01',
'end_date' => '2019-01-05',
'base' => 'USD', // optional
'symbols' => 'INR', //optional
]
);
// Display the change/fluctuation amount of INR between the given date range
echo $fluctuationData['rates']['INR']['change'];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.