perryfaro / sdk-whmcs
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/perryfaro/sdk-whmcs
Requires
This package is auto-updated.
Last update: 2025-10-07 02:39:37 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();