2017 © Pedro Peláez
 

library whmcsapi

API interface handler for WHMCS v6.0 and above

image

gohrco/whmcsapi

API interface handler for WHMCS v6.0 and above

  • Monday, April 25, 2016
  • by gohrco
  • Repository
  • 2 Watchers
  • 4 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Whmcsapi

Synopsis

API interface handler for WHMCS v6.0 and above, (*1)

Installation

Install the latest version with, (*2)

$ composer require gohrco/whmcsapi

Basic Usage

<?php

use Gohrco\Whmcsapi;

// create an API handler
$api        =   new Whmcsapi();

// Set options
$api->setUsername( 'apiadmin' );
$api->setPassword( 'password' );
$api->setUrl( 'http://url.to.your/whmcs/' );
$api->setLogpath( '\absolute\path\to\log\entries' );

// Init
$api->init();

// Call API up
$result     =   $api->getclientsdetails( array( 'userid' => 1 ) );

API Reference

When creating the API handler, you can also pass the options along as an array such as:, (*3)

$api    = new Whmcsapi( array( 'username' => 'apiadmin', 'password' => 'password', 'url' => 'http://url.to.your/whmcs/', 'logpath' => '\absolute\path\to\log\entries' ) );
$result = $api->getclientsproducts( array( 'userid' => 1 ) );

If all four entries are present you can skip the init() call, as that will be done for you., (*4)

Any API method supported by WHMCS can be called directly as a method of the object. For example:, (*5)

$api->addorder();
$api->getclients();
$api->addbannedip();
...

The Versions

25/04 2016

dev-master

9999999-dev

API interface handler for WHMCS v6.0 and above

  Sources   Download

The Requires

 

The Development Requires

by Steven Mueller

25/04 2016

v1.0.0

1.0.0.0

API interface handler for WHMCS v6.0 and above

  Sources   Download

The Requires

 

The Development Requires

by Steven Mueller

14/04 2016

v1.0-alpha

1.0.0.0-alpha

API interface handler for WHMCS v6.0 and above

  Sources   Download

The Requires

 

The Development Requires

by Steven Mueller