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

ActiveLibrary[API Development](/categories/api)

i4e/whmcs-laravel
=================

Laravel WHMCS API interface

00PHP

Since Jan 10Pushed 4y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#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 i4e/laravel-whmcs
```

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

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

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

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

[](#configuration)

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

```
php artisan vendor:publish --provider=i4e\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/i4e/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(i4e\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 i4e\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'
]);
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![lupael](https://avatars.githubusercontent.com/u/43011721?v=4)](https://github.com/lupael "lupael (2 commits)")

---

Tags

php

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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