PHP Classes

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
2021-11-07 (10 months ago) RSS 2.0 feedStarStarStarStar 62%Total: 108 All time: 9,514 This week: 195Up
Version License PHP version Categories
whmcs-helper 1.0.1GNU 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.

Picture of Phan Nguyen
Name: Phan Nguyen <contact>
Classes: 1 package by
Country: Viet Nam Viet Nam
Age: 31
All time rank: 433829 in Viet Nam Viet Nam
Week rank: 485 Up2 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:108
This week:0
All time:9,514
This week:195Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:1125
  
For more information send a message to info at phpclasses dot org.