PHP code example of astrotomic / laravel-dashboard-pingping-tile

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

    

astrotomic / laravel-dashboard-pingping-tile example snippets


// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'pingping' => [
            'api_key' => '', // https://pingping.io/account/api
            'monitors' => [
                // IDs can be found in URL https://pingping.io/monitors/[0-9]+
            ],
            'refresh_interval_in_seconds' => 60,
        ],
    ],
];

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\Astrotomic\PingPingTile\FetchPingPingMonitorsCommand::class)->everyMinute();
}
bash
php artisan vendor:publish --provider="Astrotomic\PingPingTile\PingPingTileServiceProvider" --tag="dashboard-pingping-tile-views"