include_once 'serverpilot-api-php/Client.php';
$ServerPilot = new \ServerPilot\Client('CLIENT_ID', 'API_KEY');$servers = $ServerPilot->Servers()->listAll();$sysusers = $ServerPilot->SystemUsers()->listAll($server_id=null);$app = $ServerPilot->SystemUsers()->create($serverid, $username, $password);$apps = $ServerPilot->Apps()->listAll($server_id=null);$app = $ServerPilot->Apps()->create($name, $sysuser_id, $runtime='php5.4', $domains=array());$databases = $ServerPilot->Databases()->listAll($server_id=null, $app_id=null);$database = $ServerPilot->Databases()->create($app_id, $name, $username, $password);$action = $ServerPilot->Actions()->getStatus($action_id);