galamz / WHMCSL5 by galamz

Laravel 5 WHMCS API
20
1
2
Package Data
Maintainer Username: galamz
Maintainer Contact: hakanersu@gmail.com (Hakan ERSU)
Package Create Date: 2016-09-30
Package Last Update: 2016-10-08
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:05:18
Package Statistics
Total Downloads: 20
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

WHMCS API Laravel 5 Package (Development)

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)