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 2d 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 43% 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://www.gravatar.com/avatar/1e3b88e3faf0cac8b7ae72bd77ac6d397837bf6e5926b0b63f66c913eb424825?d=identicon)[queiroz](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/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)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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