PHP code example of fedeisas / laravel-dolar-blue

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

    

fedeisas / laravel-dolar-blue example snippets


'providers' => array(
    ...
    'Fedeisas\LaravelDolarBlue\LaravelDolarBlueServiceProvider',
)

'aliases' => array(
    ...
    'DolarBlue' => 'Fedeisas\LaravelDolarBlue\Facade\LaravelDolarBlue',
)

$service = App::make('Fedeisas\LaravelDolarBlue\LaravelDolarBlue');
$result = $service->get('DolarBlue'); // or $service->DolarBlue();
// returns
// array(
//   'buy' => '10.15',
//   'sell' => '10.55',
//   'timestamp' => 1399080004
// )

$result = DolarBlue::get('LaNacion');

// and using some __call magic
$result = DolarBlue::LaNacion();
$result = DolarBlue::DolarBlue();
$result = DolarBlue::BlueLytics();