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

ActiveLibrary[API Development](/categories/api)

nicklaw5/laravel-whmcs
======================

A simple Laravel interface for interacting with the WHMCS API.

62.9k9PHP

Since Feb 6Pushed 9y ago3 watchersCompare

[ Source](https://github.com/nicklaw5/laravel-whmcs)[ Packagist](https://packagist.org/packages/nicklaw5/laravel-whmcs)[ RSS](/packages/nicklaw5-laravel-whmcs/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-whmcs
=============

[](#laravel-whmcs)

**NOTE:** This package is no longer in active development. Feel free to fork and extend it as needed.

A simple Laravel interface for interacting with the WHMCS API.

Installation
============

[](#installation)

To install the package, simply add the following to your Laravel installation's `composer.json` file:

```
"require": {
	"laravel/framework": "5.*",
	"nicklaw5/laravel-whmcs": "dev-master"
},
```

Run `composer update` to pull in the files.

Then, add the following **Service Provider** to your `providers` array in your `config/app.php` file:

```
'providers' => array(
	...
	WHMCS\WHMCSServiceProvider::class
);
```

From the command-line run: `php artisan vendor:publish`

Configuration
=============

[](#configuration)

Open `config/whmcs.php` and configure the api endpoint and credentials:

```
return [
	// API URL
	'url'		=>	'http://url.com/whmcs/includes/api.php',

	// API USERNAME
	'username'	=>	'admin_user',

	// API PASSWORD
	'password'	=>	'password123',

	// API RESPONSE TYPE
	'response_type'	=> 'json', // json or xml
];
```

Usage
=====

[](#usage)

```
// app/Http/routes.php

Route::get('/products/{client_id}', function() {

    $start = 0;
    $limit = 25;

    $products = WHMCS::getClientProducts($client_id, $start, $limit);

    return json_encode($products);
});
```

WHMCS Docs
==========

[](#whmcs-docs)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://avatars.githubusercontent.com/u/7908386?v=4)[Nick Law](/maintainers/nicklaw5)[@nicklaw5](https://github.com/nicklaw5)

---

Top Contributors

[![nicklaw5](https://avatars.githubusercontent.com/u/7908386?v=4)](https://github.com/nicklaw5 "nicklaw5 (14 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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