1. Go to this page and download the library: Download orkhanahmadov/currencylayer 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/ */
orkhanahmadov / currencylayer example snippets
use Orkhanahmadov\Currencylayer\CurrencylayerClient;
$client = new CurrencylayerClient('your-access-key-here');
$client = new CurrencylayerClient('your-access-key-here', true);
$client->source('USD')->currency('EUR', 'AUD')->quotes();
// you can also pass currencies as an array
$client->source('USD')->currency(['EUR', 'AUD'])->quotes();