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

ActiveLibrary[API Development](/categories/api)

jobsfav/laravel-whmcs
=====================

WHMCS API interface for Laravel 7.0 and up

1.2.0(3y ago)010MITPHPPHP ^7.4|^8.0

Since Aug 11Pushed 3y agoCompare

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

READMEChangelogDependencies (11)Versions (21)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 version 6.

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 89.9% 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 ~117 days

Recently: every ~98 days

Total

18

Last Release

1196d ago

Major Versions

0.3.2 → 1.0.0-beta.12022-01-20

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

1.0.0-beta.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7948c238cceca055eafb5fb2600df1112d9b0d1c54019ce0d5c9ba5a30086971?d=identicon)[GClaudiu](/maintainers/GClaudiu)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[darthsoup/laravel-whmcs

WHMCS API interface for Laravel 8 and up

6434.4k](/packages/darthsoup-laravel-whmcs)[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

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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