Login   Register  
PHP Classes

File: README.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Craig Smith  >  PHP WHMCS API Library  >  README.md  >  Download  
File: README.md
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: 1 year ago
Size: 1,081 bytes


Class file image Download
# Whmcs Php Api SDK

Whmcs Php Api SDK for the [WHMCS API](http://docs.whmcs.com/API:Functions).

##Composer Install
Install composer in your project:

    curl -s https://getcomposer.org/installer | 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('http://example.com/includes/api.php', 'someusername', md5('somepass'));
    var_dump(\Whmcs\Client::getClientsDetails(array('clientid' => '1')));