nh314 / whmcs-helper
There is no license information available for the latest version (dev-master) of this package.
A Helper for sending requests to the WHMCS hosting management API.
dev-master
2017-03-13 10:09 UTC
This package is not auto-updated.
Last update: 2025-06-07 23:48:39 UTC
README
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.