PHP code example of solitweb / laravel-dashboard-currencies-tile

1. Go to this page and download the library: Download solitweb/laravel-dashboard-currencies-tile 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/ */

    

solitweb / laravel-dashboard-currencies-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'currencies' => [
            'alpha_vantage_apikey' => env('CURRENCIES_ALPHA_VANTAGES_APIKEY'),
            'from_currency' => 'BTC',
            'to_currency' => 'EUR',
            'refresh_interval_in_seconds' => 60,
        ],
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\Solitweb\CurrenciesTile\FetchDataFromApiCommand::class)->everyMinute();
}
bash
php artisan vendor:publish --provider="Solitweb\CurrenciesTile\CurrenciesTileServiceProvider" --tag="dashboard-currencies-tile-views"