PHP code example of lartisan / ploi-dashboard

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

    

lartisan / ploi-dashboard example snippets


return [
    'server_id' => env('PLOI_SERVER_ID'),

    'website_id' => env('PLOI_WEBSITE_ID'),

    'services' => [
        'api_url' => env('PLOI_API_URL', 'https://ploi.io/api'),
        'api_key' => env('PLOI_API_KEY'),
    ],

    'log_requests' => true,

    'polling' => [
        'interval' => env('PLOI_POLLING_INTERVAL', '10s'),
    ],

    'enabled_modules' => [
        'server' => [
            'server'   => true,
            'cronjobs' => true,
            'daemons'  => true,
            'databases' => true,
            'logs'     => true,
            'network'  => true,
            'php'      => true,
            'settings' => true,
            'ssh-keys' => true,
        ],

        'site' => [
            'site'        => true,
            'certificate' => true,
            'queue'       => true,
            'redirects'   => true,
            'repository'  => true,
            'settings'    => true,
        ],
    ],
];

use Lartisan\PloiDashboard\PloiDashboardPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugins([
                PloiDashboardPlugin::make(),
            ]);
    }
}
bash
php artisan vendor:publish --tag="ploi-dashboard-config"