PHPackages                             jameswestnz/serverpilot-api-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. jameswestnz/serverpilot-api-php

ActiveLibrary[API Development](/categories/api)

jameswestnz/serverpilot-api-php
===============================

ServerPilot API wrapper for PHP

611

Since Apr 13Compare

[ Source](https://github.com/jameswestnz/serverpilot-api-php)[ Packagist](https://packagist.org/packages/jameswestnz/serverpilot-api-php)[ RSS](/packages/jameswestnz-serverpilot-api-php/feed)WikiDiscussions Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

ServerPilot API PHP Wrapper
===========================

[](#serverpilot-api-php-wrapper)

Create ServerPilot Client
-------------------------

[](#create-serverpilot-client)

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

Resources
---------

[](#resources)

### Servers

[](#servers)

#### List all servers

[](#list-all-servers)

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

### System Users

[](#system-users)

#### List all sysusers

[](#list-all-sysusers)

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

#### Create a sysuser

[](#create-a-sysuser)

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

### Apps

[](#apps)

#### List all apps

[](#list-all-apps)

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

#### Create an app

[](#create-an-app)

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

### Databases

[](#databases)

#### List all databases

[](#list-all-databases)

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

#### Create a database

[](#create-a-database)

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

### Actions

[](#actions)

#### Get action status

[](#get-action-status)

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

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e7417227f1adca8f10456ff59d09cb3182ab190563abcc9f8989a97b9868c59?d=identicon)[jameswestnz](/maintainers/jameswestnz)

### Embed Badge

![Health badge](/badges/jameswestnz-serverpilot-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/jameswestnz-serverpilot-api-php/health.svg)](https://phpackages.com/packages/jameswestnz-serverpilot-api-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
