PHPackages                             pheeque/spp-api - 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. pheeque/spp-api

ActiveLibrary

pheeque/spp-api
===============

PHP wrapper library for Service Provider Pro API

v1.0(4y ago)13MITPHP

Since Jun 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pheeque/spp-api)[ Packagist](https://packagist.org/packages/pheeque/spp-api)[ RSS](/packages/pheeque-spp-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### SPP API PHP Library

[](#spp-api-php-library)

Provides a wrapper around the SPP API.

#### Installation

[](#installation)

`composer require pheeque/spp-api`

Include composer autoloader and retrieve an api instance by passing in your SPP domain and your secret API key.

```
require 'vendor/autoload.php';

use Pheeque\SPP\Api;

$sppApi = new Api("https://xxxx.spp.io/", "xxxx");

```

### Invoices

[](#invoices)

#### Get all invoices

[](#get-all-invoices)

```
$options = ['limit' => 5];
$invoices = $sppApi->getInvoices($options);

```

#### Create an invoice

[](#create-an-invoice)

```
$invoiceData = [
    'email' => 'xxxx@gmail.com',
];
$statusCode = $sppApi->createInvoice($invoiceData);

```

#### Retrieve a single invoice

[](#retrieve-a-single-invoice)

```
$invoice = $sppApi->getInvoice('1D3850383');

```

#### Update an invoice

[](#update-an-invoice)

```
$invoiceData = [
    'email' => 'xxxx@gmail.com',
];
$statusCode = $sppApi->updateInvoice($invoiceID, $invoiceData);

```

#### Charge invoice

[](#charge-invoice)

```
$sppApi->chargeInvoice('1D3850383', 'pm_xxxx');

```

#### Mark invoice as paid

[](#mark-invoice-as-paid)

```
$sppApi->markInvoiceAsPaid('1D3850383');

```

#### Delete an invoice

[](#delete-an-invoice)

```
$sppApi->deleteInvoice('1D3850383');

```

### Clients

[](#clients)

#### Create a client

[](#create-a-client)

```
$sppApi->createClient($clientData);

```

#### Get a client

[](#get-a-client)

```
$sppApi->getClient($clientID);

```

#### Update a client

[](#update-a-client)

```
$sppApi->updateClient($clientID, $clientData);

```

#### Delete a client

[](#delete-a-client)

```
$sppApi->deleteClient($clientID);

```

#### Get all clients

[](#get-all-clients)

```
$sppApi->getClients();

```

### Orders

[](#orders)

#### Create an order

[](#create-an-order)

```
$sppApi->createOrder($orderData);

```

#### Get an order

[](#get-an-order)

```
$sppApi->getOrder($orderID);

```

#### Update an order

[](#update-an-order)

```
$sppApi->updateOrder($orderID, $orderData);

```

#### Delete an order

[](#delete-an-order)

```
$sppApi->deleteOrder($orderID);

```

#### Get all orders

[](#get-all-orders)

```
$sppApi->getOrders();

```

#### Create order message

[](#create-order-message)

```
$sppApi->createOrderMessage($orderID, $message, $userID, $staff_only);

```

#### Delete order message

[](#delete-order-message)

```
$sppApi->deleteOrderMessage($orderID, $messageID);

```

#### Get all order messages

[](#get-all-order-messages)

```
$sppApi->getOrderMessages($orderID);

```

### Tickets

[](#tickets)

#### Create a ticket

[](#create-a-ticket)

```
$sppApi->createTicket($ticketData);

```

#### Get a ticket

[](#get-a-ticket)

```
$sppApi->getTicket($ticketID);

```

#### Update a ticket

[](#update-a-ticket)

```
$sppApi->updateTicket($ticketData);

```

#### Delete a ticket

[](#delete-a-ticket)

```
$sppApi->deleteTicket($ticketID);

```

#### Get all tickets

[](#get-all-tickets)

```
$sppApi->getTickets();

```

### Login Links

[](#login-links)

```
$sppApi->loginLink($userID);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1808d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/988061?v=4)[pheeque](/maintainers/pheeque)[@pheeque](https://github.com/pheeque)

---

Top Contributors

[![pheeque](https://avatars.githubusercontent.com/u/988061?v=4)](https://github.com/pheeque "pheeque (11 commits)")

### Embed Badge

![Health badge](/badges/pheeque-spp-api/health.svg)

```
[![Health](https://phpackages.com/badges/pheeque-spp-api/health.svg)](https://phpackages.com/packages/pheeque-spp-api)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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