PHPackages                             blesta/reseller-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. blesta/reseller-api

ActiveLibrary

blesta/reseller-api
===================

The official implementation of the Blesta Reseller API

1.1.0(10y ago)6772↓33.3%MITPHPPHP &gt;=5.3.0

Since Jun 26Pushed 10y ago6 watchersCompare

[ Source](https://github.com/blesta/reseller-api)[ Packagist](https://packagist.org/packages/blesta/reseller-api)[ Docs](http://github.com/blesta/reseller-api)[ RSS](/packages/blesta-reseller-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (8)Used By (0)

blesta/reseller-api
===================

[](#blestareseller-api)

[![Build Status](https://camo.githubusercontent.com/a27fbf8e35f74d654c15f90b8228f3c34410b3a4894f93e18b489ed175006762/68747470733a2f2f7472617669732d63692e6f72672f626c657374612f726573656c6c65722d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blesta/reseller-api) [![Coverage Status](https://camo.githubusercontent.com/beca314dd7c2df625fca443eb21f09b0132c2390cd623869be5cc136ca557624/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f626c657374612f726573656c6c65722d6170692f62616467652e737667)](https://coveralls.io/r/blesta/reseller-api)

The Blesta Reseller API library.

This library implements the [Reseller API](http://docs.blesta.com/display/dev/Reseller+API).

Installation
------------

[](#installation)

Install via composer:

```
composer require blesta/reseller-api:~1.0

```

Basic Usage
-----------

[](#basic-usage)

Initialize your connection. You'll need to inject this connection into any command type you wish to initialize.

```
use Blesta\ResellerApi\Connection;

$connection = new Connection();
$connection->setBasicAuth($username, $password);
```

### Credits

[](#credits)

Allows fetching available credit on your account.

```
use Blesta\ResellerApi\Command\Credits;

$credits = new Credits($connection);
```

#### Get Credits

[](#get-credits)

```
$result = $credits->get();
echo $result->response();
```

### Packages

[](#packages)

Allows fetching information on available packages.

```
use Blesta\ResellerApi\Command\Packages;

$packages = new Packages($connection);
```

#### Get Packages

[](#get-packages)

```
$result = $packages->get();
print_r($result->response());
```

#### Get Pricing

[](#get-pricing)

```
$result = $packages->getPricing($package_id);
print_r($result->response());
```

### Licenses

[](#licenses)

Allows you to add, update, suspend, unsuspend, and cancel a license.

```
use Blesta\ResellerApi\Command\Licenses;

$licenses = new Licenses($connection);
```

#### Add License

[](#add-license)

```
$data = array(
    'pricing_id' => 1,
    'test_mode' => 'true'
);
$result = $licenses->add($data);
$licenseKey = $result->response();
```

#### Update License

[](#update-license)

```
$data = array(
    'license' => 'abcdef0123456789',
    'reissue_status' => 'reissue',
    'test_mode' => 'true'
);
$licenses->update($data);
```

#### Cancel License

[](#cancel-license)

```
$data = array(
    'license' => 'abcdef0123456789',
    'test_mode' => 'true'
);
$licenses->cancel($data);
```

#### Suspend License

[](#suspend-license)

```
$data = array(
    'license' => 'abcdef0123456789',
    'test_mode' => 'true'
);
$licenses->suspend($data);
```

#### Unuspend License

[](#unuspend-license)

```
$data = array(
    'license' => 'abcdef0123456789',
    'test_mode' => 'true'
);
$licenses->unsuspend($data);
```

#### Search

[](#search)

Search for a particular license. Searches over license key, domain, IP address and installation path.

```
use Blesta\ResellerApi\Command\Search;

$search = new Search($connection);
$result = $search->data('search string')
    ->page(1)
    ->get();
print_r($result->response());
```

Command Factory
---------------

[](#command-factory)

The examples shown in the Basic Usage section demonstrate direct usage of command objects. You may find the built-in command factory more user friendly.

```
$commandFactory = new \Blesta\ResellerApi\Command\CommandFactory();
$credits = $commandFactory->create('Credits', $connection);
$packages = $commandFactory->create('Packages', $connection);
$licenses = $commandFactory->create('Licenses', $connection);
$search = $commandFactory->create('Search', $connection);
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~61 days

Total

5

Last Release

3734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f87ae869d67f48673504d6cba1adcb8945a3ba8280798917e18b7c744009fc2?d=identicon)[clphillips](/maintainers/clphillips)

![](https://www.gravatar.com/avatar/e1100c7dbee65c40edf82c25a4b7d5a34bd677ff86263396ca2ac5163da1dbe0?d=identicon)[tysonphillips](/maintainers/tysonphillips)

![](https://www.gravatar.com/avatar/b73da57e4fcb22c7d7f459b2bd00ea7bceb6252df0cd14e2d0bf4b6a145709fc?d=identicon)[paulphillips](/maintainers/paulphillips)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/blesta-reseller-api/health.svg)

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

PHPackages © 2026

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