lesaff/laravel-serverpilot is a Laravel package.
It currently has 2 GitHub stars and 109 downloads on Packagist (latest version 1.0).
Install it with composer require lesaff/laravel-serverpilot.
Discover more Laravel packages by lesaff
or browse all Laravel packages to compare alternatives.
Last updated
Version: 1.0.0
This is a Laravel 5.x wrapper for Dave Rogers' excellent ServerPilot PHP API. It comes with Service Container binding and Facade alias.
Run composer require lesaff/laravel-serverpilot
Grab ServerPilot's API ID and Key from your SP's admin panel
Set SERVERPILOT_API_ID and SERVERPILOT_API_KEY in your .env file
Edit app/config/app.php,
add the following to your providers' array
Lesaff\LaravelServerPilot\ServerPilotServiceProvider::class,
add the following to your class aliases array
'SP' => Lesaff\LaravelServerPilot\Facades\ServerPilot::class,
As a Facade
$servers = \SP::server_list();
As a Dependency injection
Route::get('/servers', function (\Lesaff\LaravelServerPilot $sp) {
$servers = $sp->server_list();
});
For full PHP API usage, please refer to https://github.com/daverogers/serverpilot-php
by Rudy Affandi (2017)
https://githubb.com/lesaff/laravel-serverpilot