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

ActiveLibrary[API Development](/categories/api)

presttec/laravel-whmcs
======================

Laravel WHMCS API interface

0.3.1(4y ago)05[1 PRs](https://github.com/presttec/laravel-whmcs/pulls)MITPHPPHP ^7.2.5|^8.0

Since Aug 11Pushed 3y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (11)Versions (13)Used By (0)

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

[](#laravel-whmcs)

[![Latest Stable Version](https://camo.githubusercontent.com/ae9ab22a91c14958d0ea884d524088c282bae3be8759ed64fd544cac31cb01ad/68747470733a2f2f706f7365722e707567782e6f72672f70726573747465632f6c61726176656c2d77686d63732f762f737461626c65)](https://packagist.org/packages/presttec/laravel-whmcs)[![Total Downloads](https://camo.githubusercontent.com/3515b085ceab19139eb76a0e4f049a33b41171bf94cac646730555bbc7047e29/68747470733a2f2f706f7365722e707567782e6f72672f70726573747465632f6c61726176656c2d77686d63732f646f776e6c6f616473)](https://packagist.org/packages/presttec/laravel-whmcs)[![License](https://camo.githubusercontent.com/f342dee45a4b14273c2d870534fd2cdc3292c34ba7eee7348254ffc93303de43/68747470733a2f2f706f7365722e707567782e6f72672f70726573747465632f6c61726176656c2d77686d63732f6c6963656e7365)](https://packagist.org/packages/presttec/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 presttec/laravel-whmcs
```

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

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

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

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

[](#configuration)

To get started, you'll need to publish all vendor assets.

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

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

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

### Lumen

[](#lumen)

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

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

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

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

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

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

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

[](#basic-usage)

You can call your WHMCS API directly by calling the `\WHMCS::{WHMCSAPIFUNCTION}` facade.

If you prefer dependency injection, you can inject the manager like this:

```
use PrestTEC\Whmcs\WhmcsManager;

class WhmcsController extends Controller
{
    private $whmcsManager;

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

    public function index()
    {
        $this->whmcsManager->execute('GetInvoice', ['invoiceid' => '1337']);
    }
}
```

**Hint**: The execute command will also support your self-created WHMCS api commands.

### Examples

[](#examples)

Obtain a list of client purchased products:

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

Retrieve a specific invoice:

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

Support
-------

[](#support)

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

License
-------

[](#license)

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

Contributing to Laravel Whmcs
-----------------------------

[](#contributing-to-laravel-whmcs)

If you find a bug or want to add a feature to Laravel Whmcs, great! In order to make it easier and quicker for me to verify and merge changes in, it would be amazing if you could follow these few basic steps:

1. Fork the project.
2. **Branch out into a new branch. `git checkout -b name_of_new_feature_or_bug`**
3. Make your feature addition or bug fix.
4. **Add tests for it. This is important so I don’t break it in a future version unintentionally.**
5. Commit.
6. Send me a pull request!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 78% 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 ~120 days

Recently: every ~173 days

Total

13

Last Release

1752d ago

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

0.3.1PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/41d106c30a96e8c60c4e75e0622ebf839db82cc029b334a288632d1c171d7fce?d=identicon)[presttec](/maintainers/presttec)

---

Top Contributors

[![darthsoup](https://avatars.githubusercontent.com/u/1668978?v=4)](https://github.com/darthsoup "darthsoup (32 commits)")[![presttec](https://avatars.githubusercontent.com/u/272730?v=4)](https://github.com/presttec "presttec (6 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)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[darthsoup/laravel-whmcs

WHMCS API interface for Laravel 8 and up

6434.4k](/packages/darthsoup-laravel-whmcs)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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