1. Go to this page and download the library: Download ranium/laravel-fixerio 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 / laravel-fixerio example snippets
// Resolve the client class instance out of the service container
$fixerio = app(\Ranium\LaravelFixerio\Client::class);
// Find latest rates
$latestRates = $fixerio->latest();
echo $latestRates['rates']['INR'];
// Find historical rates
$historicalRates = $fixerio->historical(['date' => '2019-01-01']);
echo $historicalRates['rates']['INR'];
use Fixerio;
$latestRates = Fixerio::latest();
'cache' => [
'enabled' => true,
'expire_after' => 60, // In minutes, change this as per
use Fixerio;
Fixerio::disableCache();
$latestRates = Fixerio::latest();
// Enable cache again for other calls
Fixerio::enableCache();
// Other calls to the API...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.