PHP Classes


Recommend this page to a friend!
  Classes of Craig Smith   PHP WHMCS API Library   Download  
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP WHMCS API Library
Manage hosting accounts using the WHMCS API
Author: By
Last change: Update of
Date: 1 month ago
Size: 1,081 bytes


Class file image Download
# Whmcs Php Api SDK Whmcs Php Api SDK for the [WHMCS API]( #Installation ##Composer Install Install composer in your project: curl -s | php Create a composer.json file in your project root: { "require": { "slim/slim": "2.*" } } Install via composer: php composer.phar install Add this line to your application’s index.php file: <?php require 'vendor/autoload.php'; ##Manual Install Download and extract into your project directory and require it in your application’s index.php file. You'll also need to register the autoloader. <?php require 'Whmcs/Whmcs.php'; \Whmcs\Whmcs::registerAutoloader(); ##System Requirements * PHP >= 5.3.0 * WHMCS 5 + * CURL ## Example Usage <?php \Whmcs\Client::init('', 'someusername', md5('somepass')); var_dump(\Whmcs\Client::getClientsDetails(array('clientid' => '1')));