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
2022-10-21 (7 months ago) RSS 2.0 feedStarStarStarStar 62%Total: 109 This week: 1All time: 9,571 This week: 404Up
Version License PHP version Categories
whmcs-helper 1.0.2GNU General Publi...5PHP 5, Web services, Hosting
Description 

Author

Parobit


Contributor

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: 435530 in Viet Nam Viet Nam
Week rank: 310 Up4 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:109
This week:1
All time:9,571
This week:404Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:1122