2017 © Pedro Peláez
 

library serverpilot-api-php

ServerPilot API wrapper for PHP

image

jameswestnz/serverpilot-api-php

ServerPilot API wrapper for PHP

  • Thursday, April 14, 2016
  • by jameswestnz
  • Repository
  • 5 Watchers
  • 7 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

ServerPilot API PHP Wrapper

Create ServerPilot Client

include_once 'serverpilot-api-php/Client.php';
$ServerPilot = new \ServerPilot\Client('CLIENT_ID', 'API_KEY');

Resources

Servers

List all servers

$servers = $ServerPilot->Servers()->listAll();

System Users

List all sysusers

$sysusers = $ServerPilot->SystemUsers()->listAll($server_id=null);

Create a sysuser

$app = $ServerPilot->SystemUsers()->create($serverid, $username, $password);

Apps

List all apps

$apps = $ServerPilot->Apps()->listAll($server_id=null);

Create an app

$app = $ServerPilot->Apps()->create($name, $sysuser_id, $runtime='php5.4', $domains=array());

Databases

List all databases

$databases = $ServerPilot->Databases()->listAll($server_id=null, $app_id=null);

Create a database

$database = $ServerPilot->Databases()->create($app_id, $name, $username, $password);

Actions

Get action status

$action = $ServerPilot->Actions()->getStatus($action_id);

The Versions

14/04 2016

dev-master

9999999-dev

ServerPilot API wrapper for PHP

  Sources   Download

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *

 

by James West

api php api wrapper control panel server management serverpilot

14/04 2016

dev-development

dev-development

ServerPilot API wrapper for PHP

  Sources   Download

The Requires

  • php >=5.2
  • ext-curl *
  • ext-json *

 

by James West

api php api wrapper control panel server management serverpilot