Ploi Dashboard

Authors
  • avatar
    Name
    Cristian Iosif
    Laravel and FilamentPHP Enthusiast
    X.com
    @X

Ploi Dashboard is as package that brings the Ploi site and server management to Filament admin panel. Provide the server id and the id of the site you wish to manage and unlock the Ploi features straight in your Filament admin panel.

Installation

You can install the package via composer:

1composer require lartisan/ploi-dashboard

You can publish the config file with:

1php artisan vendor:publish --tag="ploi-dashboard-config"

This is the contents of the published config file:

1return [
2 'server_id' => env('PLOI_SERVER_ID'),
3 
4 'website_id' => env('PLOI_WEBSITE_ID'),
5 
6 'services' => [
7 'api_url' => env('PLOI_API_URL', 'https://ploi.io/api'),
8 'api_key' => env('PLOI_API_KEY'),
9 ],
10 
11 'polling' => [
12 'interval' => env('PLOI_POLLING_INTERVAL', '10s'),
13 ],
14];

Usage

Add the plugin to you Panel Provide, example:

1class AdminPanelProvider extends PanelProvider
2{
3 public function panel(Panel $panel): Panel
4 {
5 return $panel
6 ...
7 ->plugins([
8 new \Lartisan\PloiDashboard\PloiDashboardPlugin,
9 ])
10 ;
11 }
12}

and provide the necessary environment variables in your .env file:

1PLOI_API_KEY=your-api-key
2PLOI_SERVER_ID=your-server-id
3PLOI_WEBSITE_ID=your-website-id

Advertising

Ploi referral

We take all the difficult work out of your hands, so you can focus on doing what you love: developing your application.