PHP code example of otifsolutions / currency-layer

1. Go to this page and download the library: Download otifsolutions/currency-layer 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/ */

    

otifsolutions / currency-layer example snippets

 >= 7.4

OTIFSolutions\Laravel\Settings\Models\Setting::set('crlKey', 'yourAccessKey');

OTIFSolutions\Laravel\Settings\Models\Setting::set('daysRates', numberOfDays);

OTIFSolutions\Laravel\Settings\Models\Setting::get('daysRates');

OTIFSolutions\Laravel\Settings\Models\Setting::get('crlKey');

php artisan migrate

php artisan fill:tables

php artisan rates:get

php artisan rates:delete

php artisan publish:flags