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

ActiveLibrary[API Development](/categories/api)

sermajid/laravel-whmcs
======================

laravel api whmcs

1.0.8(5y ago)020PHP

Since Oct 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/majidfeiz/laravel-whmcs)[ Packagist](https://packagist.org/packages/sermajid/laravel-whmcs)[ Docs](https://github.com/sermajid/laravel-whmcs)[ RSS](/packages/sermajid-laravel-whmcs/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (1)Versions (10)Used By (0)

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

[](#laravel-whmcs)

A simple Laravel interface for interacting with the WHMCS API.

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

[](#installation)

Install the package:

```
composer require sermajid/laravel-whmcs

```

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

```
'providers' => array(
	...
	sermajid\LaravelWhmcs\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 [
    'url'	=>	env('WHMCS_URL', 'http://localhost/includes/api.php'),

    // API USERNAME
    'username'	=>	env('WHMCS_USERNAME','admin_user'),

    // API PASSWORD
    'password'	=> env('WHMCS_PASSWORD','password123'),

    // API RESPONSE TYPE
    'response_type'	=> env('WHMCS_RESPONSE_TYPE','json'),
];
```

Usage
=====

[](#usage)

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

Route::get('/products/{client_id}', function () {
    $products = Whmcs::api('GetClientsProducts', [
        'clientid' => $client_id,
        'limitstart' => 0,
        'limitnum' => 25,
    ]);

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

Generic API Usage
=================

[](#generic-api-usage)

You can call any WHMCS API action using the `api` helper:

```
$result = Whmcs::api('GetOrders', ['limitstart' => 0, 'limitnum' => 10]);
```

Running Tests
=============

[](#running-tests)

```
vendor/bin/phpunit

```

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

[](#whmcs-docs)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

8

Last Release

2085d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6500924?v=4)[Majid Feizi](/maintainers/majidfeiz)[@majidfeiz](https://github.com/majidfeiz)

---

Top Contributors

[![majidfeiz](https://avatars.githubusercontent.com/u/6500924?v=4)](https://github.com/majidfeiz "majidfeiz (24 commits)")

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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