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:
Date: 3 years ago
Size: 1,081 bytes


Class file image Download
# Whmcs Php Api SDK

Whmcs Php Api SDK for the [WHMCS API](

##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:

    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.
    require 'Whmcs/Whmcs.php';
##System Requirements
* PHP >= 5.3.0
* WHMCS 5 +

## Example Usage


    \Whmcs\Client::init('', 'someusername', md5('somepass'));
    var_dump(\Whmcs\Client::getClientsDetails(array('clientid' => '1')));