PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Phan Nguyen   PHP WHMCS API Helper   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP WHMCS API Helper
Send requests to the WHMCS hosting management API
Author: By
Last change: Update of README.md
Date: 1 year ago
Size: 905 bytes
 

Contents

Class file image Download

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._