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

ActiveLibrary[API Development](/categories/api)

gufy/whmcs
==========

WHMCS API for Laravel 5

v2.1.0(9y ago)201.7k10[4 issues](https://github.com/mgufrone/whmcs-api/issues)[1 PRs](https://github.com/mgufrone/whmcs-api/pulls)MITPHP

Since Jul 18Pushed 3y ago10 watchersCompare

[ Source](https://github.com/mgufrone/whmcs-api)[ Packagist](https://packagist.org/packages/gufy/whmcs)[ Docs](https://github.com/mgufrone/whmcs-api.git)[ RSS](/packages/gufy-whmcs/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Laravel WHMCS API
=================

[](#laravel-whmcs-api)

Important Notes
===============

[](#important-notes)

For Laravel 4, please refer to this notes. [Click Here](https://github.com/mgufrone/whmcs-api/tree/v1.0.1)

Laravel 5 - Simple package for WHMCS external API.

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

[](#installation)

Run this to install on your current project

```
$ composer require gufy/whmcs:~2

```

Or you can add this package to your composer.json file:

```
"require": {
	"gufy/whmcs": "~2"
}

```

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

```
'Gufy\Whmcs\WhmcsServiceProvider'

```

#### Publish the configuration

[](#publish-the-configuration)

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

```
php artisan vendor:publish gufy/whmcs

```

#### Setting you API URL

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

go to config/whmcs.php and set the parameters

```
return array(

	'username'		=>	'api-username',
	'password'		=>	'api-password', // fill these if you want to use username password
	'auth_type'		=> 	'password', // password or api_key
	'url'			=>	'http://www.site.com/whmcs/includes/api.php', // API url
	'response'	=> 'object', // you can fill with either object or array
);

```

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
));

// or

$login = Whmcs::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")

### Dynamic Configuration

[](#dynamic-configuration)

If your site has multiple whmcs configuration, you sure will do override configuration like this

```
\Config::set('whmcs.url','http://whmcs.site.com/includes/api.php');
\Config::set('whmcs.password','your_password');
\Config::set('whmcs.username','your_username');

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 64.1% 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 ~102 days

Recently: every ~43 days

Total

8

Last Release

3603d ago

Major Versions

v1.0.1 → v2.0.02015-05-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/146045212?v=4)[mgufron](/maintainers/mgufron)[@MGufron](https://github.com/MGufron)

---

Top Contributors

[![mgufrone](https://avatars.githubusercontent.com/u/1408044?v=4)](https://github.com/mgufrone "mgufrone (25 commits)")[![queiroz](https://avatars.githubusercontent.com/u/670685?v=4)](https://github.com/queiroz "queiroz (12 commits)")[![gadhiamitul41](https://avatars.githubusercontent.com/u/8741597?v=4)](https://github.com/gadhiamitul41 "gadhiamitul41 (1 commits)")[![torqie](https://avatars.githubusercontent.com/u/6262398?v=4)](https://github.com/torqie "torqie (1 commits)")

---

Tags

phpapilaravelWhmcs

### Embed Badge

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

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

###  Alternatives

[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)

PHPackages © 2026

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