New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

gufy/whmcs

WHMCS API for Laravel 5
1,735 20

Larablocks Analysis

gufy/whmcs works with Laravel 5 (latest release v2.1.0, Jul 2, 2016), which reached end of life: no more fixes, even for security.

Laravel 4 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Jul 2, 2016)
  • 0 downloads a month (needs 10,000)
  • 20 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jul 2, 2016.
  • No releases in the last 12 months.
  • First released: Jul 18, 2014.
  • 5 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require gufy/whmcs
Latest Version:v2.1.0
Laravel:5
Older releases:4
License:MIT
Last Updated:Feb 14, 2023
Links: GitHub  ·  Packagist
Maintainer: mgufron

Laravel WHMCS API

Important Notes

For Laravel 4, please refer to this notes. Click Here

Laravel 5 - Simple package for WHMCS external API.

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

Registering the Package

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

'Gufy\Whmcs\WhmcsServiceProvider'
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

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

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

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

Related Packages

dfreer/zillow

Laravel 5 Zillow api wrapper. This code is a fork from vinceg/zillow

29,193 2
devs-poetadigital/laravel-api-generator

code generator

2,861 0
tzookb/api-responder

laravel api response helper

17 0
netsuitephp/netsuite-laravel

NetSuite PHP laravel provider wrapper

254,739 11
acidjazz/metapi

Laravel API helpers

174,658 29

Version History

Version Released Laravel License
v2.1.0 ~5 MIT
v2.0.5 ~5 MIT
v2.0.4 ~5 MIT
v2.0.3 ~5 MIT
v2.0.1 ~5 MIT