PHP Classes
elePHPant
Icontem

PHP WHMCS API Helper: Send requests to the WHMCS hosting management API

Recommend this page to a friend!
  Info   View files Documentation   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-03-14 (7 months ago) RSS 2.0 feedNot enough user ratingsTotal: 93 All time: 8,821 This week: 595Up
Version License PHP version Categories
whmcs-helper 1.0.0GNU General Publi...5PHP 5, Web services, Hosting
Description Author

This class can send requests to the WHMCS hosting management API.

It can send HTTP requests to the WHMCS API to perform arbitrary types of operations supported by the API.

The class can send requests either with the API key or not.

Name: Phan Nguyen <contact>
Classes: 1 package by
Country: Viet Nam Viet Nam
Age: 26
All time rank: 408930 in Viet Nam Viet Nam
Week rank: 1062 Up11 in Viet Nam Viet Nam Up

Details

WHMCS-Helper

This class can send requests to the WHMCS hosting management API.

It can send HTTP requests to the WHMCS API to perform arbitrary types of operations supported by the API.

The class can send requests either with the API key or not.

Example Code

With API Key

$whmcs_api = new WhmcsHelper('http://yourdomain.com/whcms/');
$whmcs_api->setUsername('whcms_username');
$whmcs_api->setPassword('whcms_password');
$whmcs_api->ip_access = false;
$whmcs_api->api_key = 'your_api_key'; //Your API key in WHCMS configuration.php file.
$stats = $whmcs_api->sendRequest('getstats');

Without API Key

$whmcs_api = new WhmcsHelper('http://yourdomain.com/whcms/');
$whmcs_api->setUsername('whcms_username');
$whmcs_api->setPassword('whcms_password');
$stats = $whmcs_api->sendRequest('getstats');

_I code this class for learning purpose so all contributors are welcome to join._

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file whmcshelper.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:93
This week:0
All time:8,821
This week:595Up