2017 © Pedro Peláez
 

library whmcs-php

Unofficial WHMCS PHP Api Package

image

gufy/whmcs-php

Unofficial WHMCS PHP Api Package

  • Saturday, July 2, 2016
  • by mgufron
  • Repository
  • 1 Watchers
  • 12 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Coverage Status Build Status, (*1)

Unofficial WHMCS PHP API Package

This package is bring for you who use whmcs so much and yet, you need some of their API., (*2)

Installation

To install this package, a simple thing you need to do is run this command in your terminal or command line, (*3)

  composer require gufy/whmcs-php:~1

Or if you already have a project and you need some package to run WHMCS API, change your composer.json and then add this line, (*4)

  {
    "require":{
      ...
      "gufy/whmcs-php":"~1"
      ...
    }
  }

Then run composer update in your terminal or similar to it., (*5)

Usage

Here is how you use it., (*6)

<?php
use Gufy\WhmcsPhp\Config;
use Gufy\WhmcsPhp\Whmcs;

$config = new Config([
  'baseUrl'=>'http://yourwhmcs/includes/api.php',
  'username'=>'your_username',
  'password'=>'your_password'
]);


$whmcs = new Whmcs($config);

// Get Clients
$clients = $whmcs->getclients();


// get client by id
$invoice = $whmcs->getinvoice(['invoiceid'=>1023]);

If you prefer using api keys instead of user password, change the configuration like this., (*7)

<?php

use Gufy\WhmcsPhp\Config;
use Gufy\WhmcsPhp\Whmcs;

$config = new Config([
  'baseUrl'=>'http://yourwhmcs/includes/api.php',
  'username'=>'your_username',
  'password'=>'your_api_keys',
  'authType'=>'keys'
]);

$whmcs = new Whmcs($config);

Just call all action which is already defined at WHMCS Developer Documentation, (*8)

Feedback & Contribution

Love this package? You can add some star to this package or if you have any ideas about improving this package, just fork it and make a pull request. Thank you. :+1:, (*9)

The Versions

02/07 2016

dev-master

9999999-dev

Unofficial WHMCS PHP Api Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mochamad Gufron

02/07 2016

v1.1.0

1.1.0.0

Unofficial WHMCS PHP Api Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mochamad Gufron

23/05 2015

v1.0.0

1.0.0.0

Unofficial WHMCS PHP Api Package

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mochamad Gufron