2017 © Pedro Peláez
 

library laravel-serverpilot

image

lesaff/laravel-serverpilot

  • Thursday, October 26, 2017
  • by lesaff
  • Repository
  • 1 Watchers
  • 2 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

ServerPilot PHP API Wrapper for Laravel 5

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)

Installation

  1. Run composer require lesaff/laravel-serverpilot
  2. Grab ServerPilot's API ID and Key from your SP's admin panel
  3. Set SERVERPILOT_API_ID and SERVERPILOT_API_KEY in your .env file
  4. Edit 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,
    

Usage

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)

The Versions

26/10 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Rudy Affandi

26/10 2017

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Rudy Affandi