PHPackages                             pitchero/reseller-club - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. pitchero/reseller-club

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

pitchero/reseller-club
======================

A PHP SDK for the ResellerClub API.

1.9.0(3y ago)1514.8k↓50%5[2 PRs](https://github.com/Pitchero/ResellerClub/pulls)1MITPHPPHP &gt;=7.0.0

Since Nov 14Pushed 7mo ago7 watchersCompare

[ Source](https://github.com/Pitchero/ResellerClub)[ Packagist](https://packagist.org/packages/pitchero/reseller-club)[ RSS](/packages/pitchero-reseller-club/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (27)Used By (1)

ResellerClub
============

[](#resellerclub)

[![Build Status](https://github.com/Pitchero/ResellerClub/actions/workflows/php-tests.yml/badge.svg)](https://github.com/Pitchero/ResellerClub/actions)

A PHP SDK for [ResellerClub’s API](https://manage.resellerclub.com/kb/node/744).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0

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

[](#installation)

This package is available through [Packagist](https://packagist.org/packages/pitchero/reseller-club). To install in your project via [Composer](https://getcomposer.org/):

```
$ composer require pitchero/reseller-club

```

Example Usages
--------------

[](#example-usages)

### Business Emails

[](#business-emails)

[API Documentation](https://manage.resellerclub.com/kb/node/2155).

#### Creating a order

[](#creating-a-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2156)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    )

    $request = new ResellerClub\Orders\BusinessEmails\Requests\BusinessEmailOrderRequest(
        $customerId = 123,
        $domain = 'some-domain.co.uk',
        $numberOfAccount = 5,
        $forNumberOfMonths = 1,
        ResellerClub\Orders\InvoiceOption::noInvoice()
    );

    $response = $api->businessEmailOrder()->create($request);

    // @todo - Handle a successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Deleting an order

[](#deleting-an-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2162)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    );

    $request = new ResellerClub\Orders\Order(
        $orderId = 123
    );

    $response = $api->businessEmailOrder()->delete($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Getting an order

[](#getting-an-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2163)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    );

    $request = new ResellerClub\Orders\Order(
        $orderId = 123
    );

    $response = $api->businessEmailOrder()->get($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Renewing an order

[](#renewing-an-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2157)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    );

    $request = new ResellerClub\Orders\BusinessEmails\Requests\RenewRequest(
        new ResellerClub\Orders\Order(
           $orderId = 123
        ),
        $months = 1,
        $numberOfAccounts = 1,
        ResellerClub\Orders\InvoiceOption::noInvoice()
    );

    $response = $api->businessEmailOrder()->renew($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Add email account to a business email order

[](#add-email-account-to-a-business-email-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2158)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    );

    $request = new ResellerClub\Orders\BusinessEmails\Requests\AddEmailAccountRequest(
        new ResellerClub\Orders\Order(
           $orderId = 123
        ),
        $numberOfAccounts = 1,
        ResellerClub\Orders\InvoiceOption::noInvoice()
    );

    $response = $api->businessEmailOrder()->addEmailAccounts($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Delete email account from an existing business email order

[](#delete-email-account-from-an-existing-business-email-order)

[API Documentation](https://manage.resellerclub.com/kb/node/2159)

```
try {
    $api = new ResellerClub\Api(
         new ResellerClub\Config(123, 'api_key', true),
         new GuzzleHttp\Client()
    );

    $request = new ResellerClub\Orders\BusinessEmails\Requests\DeleteEmailAccountRequest(
        new ResellerClub\Orders\Order(
           $orderId = 123
        ),
        $numberOfAccounts = 1
    );

    $response = $api->businessEmailOrder()->deleteEmailAccounts($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

### Email Accounts

[](#email-accounts)

[API Documentation](https://manage.resellerclub.com/kb/node/1034).

#### Creating an email account

[](#creating-an-email-account)

[API Documentation](https://manage.resellerclub.com/kb/node/1037)

```
try {
        $api = new ResellerClub\Api(
             new ResellerClub\Config(123, 'api_key', true),
             new GuzzleHttp\Client()
        );

        $request = ResellerClub\Orders\EmailAccounts\Requests\CreateRequest(
            ResellerClub\Orders\Order(
               $orderId = 123
            ),
            ResellerClub\EmailAddress(
               $email = 'john.doe@some-domain.co.uk'
            ),
            string $password,
            ResellerClub\EmailAddress(
               $notificationsEmail = 'john.doe@backup-email.co.uk'
            ),
            $firstName = 'John',
            $lastName = 'Doe',
            $countryCode = 'UK',
            $languageCode = 'en'
        );

        $response = $api->emailAccount()->create($request);

        // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Deleting an email account

[](#deleting-an-email-account)

[API Documentation](https://manage.resellerclub.com/kb/node/1049)

```
try {
        $api = new ResellerClub\Api(
             new ResellerClub\Config(123, 'api_key', true),
             new GuzzleHttp\Client()
        );

        $request = ResellerClub\Orders\EmailAccounts\Requests\DeleteRequest(
            ResellerClub\Orders\Order(
                $orderId = 123
            ),
            ResellerClub\EmailAddress(
                $email = 'john.doe@some-domain.co.uk'
            )
        );

        $response = $api->emailAccount()->delete($request);

        // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

### Email forwarders

[](#email-forwarders)

#### Create an email forwarder

[](#create-an-email-forwarder)

[API Documentation](https://manage.resellerclub.com/kb/node/1038)

```
try {
        $api = new ResellerClub\Api(
             new ResellerClub\Config(123, 'api_key', true),
             new GuzzleHttp\Client()
        );

        $request = ResellerClub\Orders\EmailForwarders\Requests\CreateRequest(
              ResellerClub\Orders\Order(
                 $orderId = 123
              ),
              ResellerClub\EmailAddress(
                $email = 'john.doe@some-domain.co.uk'
              )
        );

        $response = $api->emailForwarder()->create($request);

        // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Deleting an email forwarder

[](#deleting-an-email-forwarder)

[API Documentation](https://manage.resellerclub.com/kb/node/1049)

```
try {
        $api = new ResellerClub\Api(
             new ResellerClub\Config(123, 'api_key', true),
             new GuzzleHttp\Client()
        );

        $request = ResellerClub\Orders\EmailAccounts\Requests\DeleteRequest(
            ResellerClub\Orders\Order(
                $orderId = 123
            ),
            ResellerClub\EmailAddress(
                $email = 'john.doe@some-domain.co.uk'
            )
        );

        $response = $api->emailForwarder()->delete($request);

        // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

Helpful articles from the ResellerClub knowledge base
-----------------------------------------------------

[](#helpful-articles-from-the-resellerclub-knowledge-base)

1. [How to create an account on the staging platform](https://manage.resellerclub.com/kb/node/173)
2. [Where to find and regenerate an API key](https://manage.resellerclub.com/kb/node/3188)

#### Add an A record

[](#add-an-a-record)

[API Documentation](https://manage.resellerclub.com/kb/node/1093)

```
try {
    $ttl = new ResellerClub\TimeToLive(86400);
    $request = new ResellerClub\Dns\A\Requests\AddRequest(
        $domain = 'another-testing-domain.com',
        $record = 'test',
        new ResellerClub\IPv4Address('127.0.0.1'),
        $ttl
    );

    $response = $api->aRecord()->add($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

#### Update a CNAME record

[](#update-a-cname-record)

[API Documentation](https://manage.resellerclub.com/kb/node/1101)

```
try {
    $ttl = new ResellerClub\TimeToLive(86400);
    $request = new ResellerClub\Dns\Cname\Requests\UpdateRequest(
        $domain = 'your.com',
        $record = 'www',
        $currentValue = 'cname.oldservice.com',
        $newValue = 'cname.newservice.com',
        $ttl
    );

    $response = $api->cnameRecord()->update($request);

    // @todo - Handle the successful response within your codebase.

} catch(ResellerClub\Exceptions\ApiException $e) {
    // @todo - Handle the exception within your codebase.
}
```

License
-------

[](#license)

Licensed under the [MIT License](LICENSE.md).

Issues
------

[](#issues)

If you find an issue with this package, please open a [GitHub Issue](https://github.com/Pitchero/ResellerClub/issues/new).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance44

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 70.8% 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 ~73 days

Recently: every ~281 days

Total

24

Last Release

1429d ago

### Community

Maintainers

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

---

Top Contributors

[![OAFCROB](https://avatars.githubusercontent.com/u/3277589?v=4)](https://github.com/OAFCROB "OAFCROB (75 commits)")[![jonmilsom](https://avatars.githubusercontent.com/u/488695?v=4)](https://github.com/jonmilsom "jonmilsom (12 commits)")[![martinbean](https://avatars.githubusercontent.com/u/167312?v=4)](https://github.com/martinbean "martinbean (10 commits)")[![benconvey](https://avatars.githubusercontent.com/u/10352780?v=4)](https://github.com/benconvey "benconvey (4 commits)")[![jadgray](https://avatars.githubusercontent.com/u/26045920?v=4)](https://github.com/jadgray "jadgray (2 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (2 commits)")[![HughNoble](https://avatars.githubusercontent.com/u/6029435?v=4)](https://github.com/HughNoble "HughNoble (1 commits)")

---

Tags

phpresellerclubapiemailhostingreseller-clubresellerclub

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pitchero-reseller-club/health.svg)

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

###  Alternatives

[mailjet/mailjet-apiv3-php

PHP wrapper for the Mailjet API

27411.4M77](/packages/mailjet-mailjet-apiv3-php)[princealikhan/laravel-mautic-api

Free and Open Source Marketing Automation API

415.9k](/packages/princealikhan-laravel-mautic-api)

PHPackages © 2026

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