PHP Classes

File: README.md

Recommend this page to a friend!
  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: Update of README.md
Date: 9 months ago
Size: 1,081 bytes
 

Contents

Class file image Download
# Whmcs Php Api SDK Whmcs Php Api SDK for the [WHMCS API](http://docs.whmcs.com/API:Functions). #Installation ##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: <?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('http://example.com/includes/api.php', 'someusername', md5('somepass')); var_dump(\Whmcs\Client::getClientsDetails(array('clientid' => '1')));