PHP code example of apvalkov / laravel-openexchangerates
1. Go to this page and download the library: Download apvalkov/laravel-openexchangerates 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/ */
apvalkov / laravel-openexchangerates example snippets
Apvalkov\LaravelOpenexchangerates\ServiceProvider::class,
// Latest
$rates = (new Openexchangerates())->latest(new LatestRatesRequest());
//Historical
$rates = (new Openexchangerates())->historical(new LatestRatesRequest(), Carbon::now());
shell
php artisan vendor:publish --provider="Apvalkov\LaravelOpenexchangerates\ServiceProvider"