PHP code example of laymont / venezuelan-foreign-exchanges
1. Go to this page and download the library: Download laymont/venezuelan-foreign-exchanges 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/ */
laymont / venezuelan-foreign-exchanges example snippets
namespace App\Http\Controllers;
use Laymont\VenezuelanForeignExchanges\Services\BcvService;
class ExchangeController extends Controller
{
public function index(BcvService $bcvService)
{
$rates = $bcvService->getLatestExchangeRates();
dd($rates);
}
}
[
[
'date' => 'YYYY-MM-DD',
'time' => 'HH:MM',
'currency' => 'Nombre de la divisa',
'value' => 123.45,
],
...
]
bash
php artisan vendor:publish --tag=config