Skip to content

jameswestnz/serverpilot-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

PHP wrapper for the serverpilot.io API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages