2017 © Pedro Peláez
 

library whmcs-connector

WHMCS for PHP

image

amenophis/whmcs-connector

WHMCS for PHP

  • Monday, March 25, 2013
  • by amenophis
  • Repository
  • 1 Watchers
  • 1 Stars
  • 43 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WHMCS connector for PHP 5.3

Easily connect your web applications with WHMCS., (*1)

Requires PHP CURL extension, (*2)

Usage

<?php

//include our load if you don't have one already
include 'FP/WHMCS/Loader.php';

$loader = FP\WHMCS\Loader();
$loader->register();

//use the classes we need to get started
use FP\WHMCS\Adapter\Manager; //manage our connections, only required if you plan on storing multiple connections
use FP\WHMCS\Adapter\Json\Connector; //the actually connector we will be using

//create a connector and configure it
$connector = Connector::getInstance('http://domain.com', 'username', md5('password'));

//create an instance of our manager and store our connector in it
$manager = Manager::getInstance();
$manager->setConnector('default', $connector);

//now we can start making requests and working with the response
$response = $connector->execute('action', array('arg1'=>'val1', 'arg2'=>'val2'));

The Versions

25/03 2013

dev-master

9999999-dev

WHMCS for PHP

  Sources   Download

The Requires

  • php >=5.3.3