PHPackages                             queiroz/whmcs-api - 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. queiroz/whmcs-api

AbandonedArchivedLibrary[API Development](/categories/api)

queiroz/whmcs-api
=================

Whmcs API for Laravel 4

121.5k7[1 issues](https://github.com/queiroz/whmcs-api/issues)PHP

Since Mar 2Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

WHMCS-API
=========

[](#whmcs-api)

Laravel 4 - Simple package for WHMCS external API

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

[](#installation)

Add whmcs-api to your composer.json file:

```
"require": {
	"queiroz/whmcs-api": "dev-master"
}

```

Use composer to install this package.

```
$ composer update

```

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

[](#configuration)

#### Registering the Package

[](#registering-the-package)

register this service provider at the bottom of the $providers array: app.php

```
'Queiroz\WhmcsApi\WhmcsApiServiceProvider'

```

#### Setting you API URL

[](#setting-you-api-url)

go to laravel/vendor/queiroz/whmcs-api/src/config/config.php and set the parameters

```
return array(

	'username'	=>	'api-username',
	'password'	=>	'api-password',
	'url'		=>	'http://www.site.com/whmcs/includes/api.php', // API url

);

```

#### Publish the configuration

[](#publish-the-configuration)

When this command is executed, the configuration files for your application will be copied to `app/config/packages/queiroz/whmcs-api` where they can be safely modified by the developer!

```
php artisan config:publish queiroz/whmcs-api

```

Usage
=====

[](#usage)

#### Basic usage

[](#basic-usage)

Logging a user to WHMCS

```
$username = 'client';	// Client Username
$password = 'password'; // Client Password

$login = Whmcs::execute('validatelogin', array('email' => $username, 'password2' => $password));

if($login->result == 'success') {
	echo 'User Logged In';
} elseif($login->result == 'error') {
	echo $login->message;
}

```

For reference on WHMCS API please follow [http://docs.whmcs.com/API](http://docs.whmcs.com/API/ "WHMCS API Documentation")

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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/670685?v=4)[Rodrigo Queiroz](/maintainers/queiroz)[@queiroz](https://github.com/queiroz)

---

Top Contributors

[![queiroz](https://avatars.githubusercontent.com/u/670685?v=4)](https://github.com/queiroz "queiroz (13 commits)")[![torqie](https://avatars.githubusercontent.com/u/6262398?v=4)](https://github.com/torqie "torqie (1 commits)")

### Embed Badge

![Health badge](/badges/queiroz-whmcs-api/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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