PHP code example of norse-blue / laravel-banxico
1. Go to this page and download the library: Download norse-blue/laravel-banxico 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/ */
norse-blue / laravel-banxico example snippets
php artisan vendor:publish --provider="NorseBlue\LaravelBanxico\BanxicoServiceProvider" --tag="settings"
Banxico::getSeriesData(
BanxicoSeries::combine(
BanxicoSeries::ExchangeRate_USD_SettleObligationsDate,
BanxicoSeries::ExchangeRate_EUR_BasketSDR,
),
now()->subDays(7),
now(),
);