PHP code example of phpadam / dashboardspatiersstile

1. Go to this page and download the library: Download phpadam/dashboardspatiersstile 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/ */

    

phpadam / dashboardspatiersstile example snippets


// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\Phpadam\DashboardSpatieRssTile\Commands\FetchDataFromApiCommand::class)->everyMinute();
}

// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'rsstile' => [
            'feeds' => 'https://domainone.com/feed.xml,https://domaintwo.com/feed.xml',
            'refresh_interval_in_seconds' => 60,
        ]
    ],
];
 bash
$ php artisan vendor:publish --provider="willvincent\Feeds\FeedsServiceProvider"
bash
php artisan vendor:publish --provider="Phpadam\DashboardSpatieRssTile\DashboardSpatieRssTileServiceProvider" --tag="DashboardSpatieRssTile-views"