PHP code example of perryfaro / sdk-whmcs

1. Go to this page and download the library: Download perryfaro/sdk-whmcs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

perryfaro / sdk-whmcs example snippets


$authentication = new Whmcs\Authentication\Authentication;
$authentication->setUrl('https://www.example.com/');
$authentication->setPassword('password');
$authentication->setUsername('username');

$class = new Whmcs\Whmcs($authentication);
$class->client()->getClients()->request();

$class = new Whmcs\Client\Client($authentication);
$class->getClients()->request();

$class = new Whmcs\Client\Options\GetClients($authentication);
$class->request();