dev-master
9999999-dev
MIT
The Requires
by Rudy Affandi
Wallogit.com
2017 © Pedro Peláez
Version: 1.0.0, (*1)
This is a Laravel 5.x wrapper for Dave Rogers' excellent ServerPilot PHP API. It comes with Service Container binding and Facade alias., (*2)
composer require lesaff/laravel-serverpilot
SERVERPILOT_API_ID and SERVERPILOT_API_KEY in your .env fileEdit app/config/app.php,, (*3)
add the following to your providers' array, (*4)
Lesaff\LaravelServerPilot\ServerPilotServiceProvider::class,
add the following to your class aliases array, (*5)
'SP' => Lesaff\LaravelServerPilot\Facades\ServerPilot::class,
As a Facade, (*6)
$servers = \SP::server_list();
As a Dependency injection, (*7)
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, (*8)
by Rudy Affandi (2017)
https://githubb.com/lesaff/laravel-serverpilot, (*9)
MIT