PHPackages                             darthsoup/laravel-whmcs - 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. darthsoup/laravel-whmcs

ActiveLibrary[API Development](/categories/api)

darthsoup/laravel-whmcs
=======================

WHMCS API interface for Laravel 8 and up

1.4.0(2mo ago)6434.4k—10%23MITPHPPHP ^7.4|^8.0CI failing

Since Aug 11Pushed 1y ago7 watchersCompare

[ Source](https://github.com/darthsoup/laravel-whmcs)[ Packagist](https://packagist.org/packages/darthsoup/laravel-whmcs)[ RSS](/packages/darthsoup-laravel-whmcs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (22)Versions (26)Used By (0)

WHMCS API for Laravel
=====================

[](#whmcs-api-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/ee6b367f78cabd9266b89a0d54a2fe3527da5ef8fb9658963670ac6a80d65c0f/68747470733a2f2f706f7365722e707567782e6f72672f6461727468736f75702f6c61726176656c2d77686d63732f762f737461626c65)](https://packagist.org/packages/darthsoup/laravel-whmcs)[![Total Downloads](https://camo.githubusercontent.com/41166409f17647bbe3611ec3852a425fa978e71d2e76264ffb65113f5140eee8/68747470733a2f2f706f7365722e707567782e6f72672f6461727468736f75702f6c61726176656c2d77686d63732f646f776e6c6f616473)](https://packagist.org/packages/darthsoup/laravel-whmcs)[![License](https://camo.githubusercontent.com/0bf7505f4734cdbb9d4f71828b4d82b78af09c52f4754adba3244a9d11a0f0ca/68747470733a2f2f706f7365722e707567782e6f72672f6461727468736f75702f6c61726176656c2d77686d63732f6c6963656e7365)](https://packagist.org/packages/darthsoup/laravel-whmcs)

An interface for interaction with the WHMCS API in Laravel. This Package is heavily inspired by [Laravel GitLab](https://github.com/GrahamCampbell/Laravel-GitLab) created by [Graham Campbell](https://github.com/GrahamCampbell/).

> **Notice:**
>
> The legacy version 0.3 can be found [here](https://github.com/darthsoup/laravel-whmcs/tree/legacy)

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

[](#installation)

WHMCS API for Laravel requires PHP ^7.4 | ^8.0 with at least Laravel 8.

Install the package through [Composer](http://getcomposer.org/). Run the Composer require command from the Terminal:

```
composer require darthsoup/laravel-whmcs
```

Package will be installed automatically through composer package discovery. If not, then you need to register the `DarthSoup\Whmcs\WhmcsService` service provider in your `config/app.php`.

Optionally, you can add the alias if you prefer to use the Facade:

```
'Whmcs' => DarthSoup\Whmcs\Facades\Whmcs::class
```

Configuration
-------------

[](#configuration)

To get started, you'll need to publish vendor assets for Laravel-Whmcs.

```
php artisan vendor:publish --provider="DarthSoup\Whmcs\WhmcsServiceProvider"
```

This will create the `config/whmcs.php` file in your app, modify it to set your configuration.

#### Default Connection

[](#default-connection)

The option `default` is where you specify the default connection.

#### WHMCS Connections

[](#whmcs-connections)

The option `connections` is where you can add multiple connections to your whmcs instances. You can choose between both API connection types from whmcs. These methods are `password` and `token`. Example connections has been included, but you can add as many connections you would like.

Usage
-----

[](#usage)

#### via dependency injection

[](#via-dependency-injection)

If you prefer to use Dependency Injection, you can easily add it to your controller as below:

```
use DarthSoup\Whmcs\WhmcsManager;

class WhmcsController extends Controller
{
    private WhmcsManager $whmcsManager;

    public function __construct(WhmcsManager $whmcsManager)
    {
        $this->whmcsManager = $whmcsManager;
    }

    public function index()
    {
        $result = $this->whmcsManager->client()->getClients();
        dd($result);
    }
}
```

#### Via Facade

[](#via-facade)

If you prefer the classic Laravel facade style, this might be the way to go:

```
use \DarthSoup\Whmcs\Facades\Whmcs;
# or
use \Whmcs;

\Whmcs::Client()->getClientsDomains(['clientid' => '1']);
```

#### Real examples

[](#real-examples)

```
use \DarthSoup\Whmcs\Facades\Whmcs;

# Obtaining a list of domains purchased by the customer
\Whmcs::Client()->getClientsDomains(['clientid' => '1']);

# Obtaining a list of products purchased by the customer
\Whmcs::Client()->getClientsProducts(['clientid' => '12345']);

# Retrieve a specific invoice
\Whmcs::Billing()->getInvoice(['invoiceid' => '1337']);

# Retrieves all Orders from the system
\Whmcs::Orders()->getOrders();

# Obtain internal users
\Whmcs::Users()->getUsers(['search' => 'foo@bar.org']);

# Custom Method (in case you added custom endpoints)
\Whmcs::Custom()->(['foo' => 'bar']);
```

For more information on how to use the WhmcsApi Client `DarthSoup\WhmcsApi\Client` class, check out the documentation at .

Support
-------

[](#support)

[Please open an issue in github](https://github.com/darthsoup/laravel-whmcs/issues)

License
-------

[](#license)

This package is released under the MIT License. See the bundled [LICENSE](https://github.com/darthsoup/laravel-whmcs/blob/master/LICENSE.md) file for details.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance65

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~142 days

Recently: every ~275 days

Total

23

Last Release

68d ago

Major Versions

0.3.2 → 1.0.0-beta.12022-01-20

PHP version history (3 changes)0.1PHP &gt;=7.0.0

1.0.0-beta.1PHP ^7.4|^8.0

1.4.0.x-devPHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![darthsoup](https://avatars.githubusercontent.com/u/1668978?v=4)](https://github.com/darthsoup "darthsoup (65 commits)")[![jakubstephan](https://avatars.githubusercontent.com/u/94836994?v=4)](https://github.com/jakubstephan "jakubstephan (3 commits)")[![stephandesouza](https://avatars.githubusercontent.com/u/159077?v=4)](https://github.com/stephandesouza "stephandesouza (2 commits)")[![JobsFav](https://avatars.githubusercontent.com/u/123368992?v=4)](https://github.com/JobsFav "JobsFav (1 commits)")[![jshah4517](https://avatars.githubusercontent.com/u/602425?v=4)](https://github.com/jshah4517 "jshah4517 (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![Persaeus](https://avatars.githubusercontent.com/u/32091869?v=4)](https://github.com/Persaeus "Persaeus (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

laravelphpwhmcswhmcs-api

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/darthsoup-laravel-whmcs/health.svg)

```
[![Health](https://phpackages.com/badges/darthsoup-laravel-whmcs/health.svg)](https://phpackages.com/packages/darthsoup-laravel-whmcs)
```

###  Alternatives

[lukepolo/laracart

A simple cart for Laravel

583135.4k1](/packages/lukepolo-laracart)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[laragear/turnstile

Use Cloudflare's no-CAPTCHA with HTTP/3 in your Laravel application.

684.5k](/packages/laragear-turnstile)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)

PHPackages © 2026

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