WHMCS SDK (unofficial)
Installation
The WHMCS SDK can be installed with Composer. Run this command:, (*1)
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., (*2)
Option 1:, (*3)
$class = new Whmcs\Whmcs($authentication);
$class->client()->getClients()->request();
Option 2:, (*4)
$class = new Whmcs\Client\Client($authentication);
$class->getClients()->request();
Option 3:, (*5)
$class = new Whmcs\Client\Options\GetClients($authentication);
$class->request();