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

ActiveLibrary[API Development](/categories/api)

tustin/laravel-whmcs
====================

Laravel WHMCS API interface

0.2.6(5y ago)05MITPHPPHP &gt;=7.0.0

Since Aug 11Pushed 5y agoCompare

[ Source](https://github.com/Tustin/laravel-whmcs)[ Packagist](https://packagist.org/packages/tustin/laravel-whmcs)[ RSS](/packages/tustin-laravel-whmcs/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (13)Used By (0)

Laravel WHMCS
=============

[](#laravel-whmcs)

[![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.

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

[](#installation)

Install the package through [Composer](http://getcomposer.org/).

Run the Composer require command from the Terminal:

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

Run `composer update` to pull in the files.

### After Laravel 5.5

[](#after-laravel-55)

You don't have to do anything else here.

### Before Laravel 5.5

[](#before-laravel-55)

Now all you have to do is add the service provider of the package and alias the package. To do this, open your `config/app.php` file.

Add a new line to the `providers` array:

```
DarthSoup\Whmcs\WhmcsServiceProvider::class
```

And optionally add a new line to the `aliases` array:

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

From the command-line run:

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

Then open `config\whmcs.php` to insert your WHMCS api credentials.

Now you can use the WHMCS API in your Laravel project.

### Lumen

[](#lumen)

Copy the config file from the package to in your config directory:

```
cp vendor/darthsoup/laravel-whmcs/config/whmcs.php config/whmcs.php
```

Then open `config\whmcs.php` to insert your WHMCS api credentials.

To finish this, register the config file and the service provider in `bootstrap/app.php`:

```
$app->configure('whmcs');
$app->register(DarthSoup\Whmcs\WhmcsServiceProvider::class);
```

Now you can use the WHMCS API in your Lumen project.

Usage
-----

[](#usage)

You can call your WHMCS API directly by calling the `\WHMCS::{WHMCSAPIFUNCTION}` facade. This also works with custom API functions contained in your WHMCS API folder.

### Examples

[](#examples)

Obtain a list of client purchased products

```
\Whmcs::GetClientsProducts([
    'clientid' => '12345'
])
```

Retrieve a specific invoice

```
\Whmcs::GetInvoice([
    'invoiceid' => '1337'
])
```

If you dont use the Facade, you can call it with the `app()` helper.

```
$whmcs = app('whmcs');
$whmcs->execute('GetInvoice', [
    'invoiceid' => '1337'
]);
```

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) file for details.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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 ~112 days

Recently: every ~159 days

Total

11

Last Release

2073d ago

### Community

Maintainers

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

---

Top Contributors

[![darthsoup](https://avatars.githubusercontent.com/u/1668978?v=4)](https://github.com/darthsoup "darthsoup (25 commits)")[![Tustin](https://avatars.githubusercontent.com/u/5008148?v=4)](https://github.com/Tustin "Tustin (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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