PHP code example of eluafidev / laravel-easyfixerapi

1. Go to this page and download the library: Download eluafidev/laravel-easyfixerapi 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/ */

    

eluafidev / laravel-easyfixerapi example snippets


use ElouafiDev\EasyFixerApi\FixerApi;

$fixerio = new FixerApi(" KEY Fixer API ");

$fixerio->apiget(); // Get currency values from API

$fixerio->CurrencyExchange(1,"USD","MAD")
/*If the result is -1, you have an error*/