PHP code example of michaelthedev / freecurrencyapi-php

1. Go to this page and download the library: Download michaelthedev/freecurrencyapi-php 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/ */

    

michaelthedev / freecurrencyapi-php example snippets


$freecurrencyapi = new \FreeCurrencyApi\FreeCurrencyApi\FreeCurrencyApiClient('YOUR-API-KEY');

echo $freecurrencyapi->latest([
    'base_currency' => 'EUR',
    'currencies' => 'USD',
]);
bash
composer