perryfaro / sdk-whmcs
There is no license information available for the latest version (0.1) of this package.
0.1
2016-01-20 23:53 UTC
Requires
This package is auto-updated.
Last update: 2024-12-07 01:04:25 UTC
README
Installation
The WHMCS SDK can be installed with Composer. Run this command:
composer require perryfaro/sdk-whmcs
Usage
setup Authentication
$authentication = new Whmcs\Authentication\Authentication; $authentication->setUrl('https://www.example.com/'); $authentication->setPassword('password'); $authentication->setUsername('username');
Making a request
Below you will see three ways of making a request.
Option 1:
$class = new Whmcs\Whmcs($authentication); $class->client()->getClients()->request();
Option 2:
$class = new Whmcs\Client\Client($authentication); $class->getClients()->request();
Option 3:
$class = new Whmcs\Client\Options\GetClients($authentication); $class->request();