xuma/l5whmcs

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel 5 WHMCS API

v5.2 2016-05-10 08:38 UTC

This package is not auto-updated.

Last update: 2020-03-20 16:40:05 UTC


README

Laravel Source License

Installation

Begin by installing the package through Composer. The best way to do this is through your terminal via Composer itself:

composer require xuma/l5whmcs

or you can add your composer.json require section:

"xuma/l5whmcs": "~1.0@dev"

Don't forget to update composer update.

Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:

Config File

Create config/whmcs.php with content:

    return [
        'url'=>'https://whmcsurl/includes/api.php',
        'username'=>'yourapiusername',
        'password'=>'yourapipassword',
        'user_agent'=>'Your Agent Name'
    ];

Service Provider

'Xuma\Whmcs\WhmcsServiceProvider',

Facade

'WHMCS'=> 'Xuma\Whmcs\Facades\Whmcs',

Examples

Getting all clients.

WHMCS::getClients();

Getting single client

WHMCS::getClientsDetails($userIdOrEmail);

Getting clients products

WHMCS::getClientsProducts($userId)

Getting clients domains

WHMCS::getClientsDomains($userId)

Getting clients hashed password

WHMCS::getClientsPassword($userId)