dev-master
9999999-devLaravel 5 WHMCS API
MIT
The Requires
- php >=5.4.0
- illuminate/support ~5.2
- guzzlehttp/guzzle ~6.0
by Hakan ERSU
by The GalaMz
laravel api whmcs
Wallogit.com
2017 © Pedro Peláez
Laravel 5 WHMCS API
Begin by installing the package through Composer. The best way to do this is through your terminal via Composer itself:, (*2)
composer require xuma/l5whmcs
or you can add your composer.json require section:, (*3)
"xuma/l5whmcs": "~1.0@dev"
Don't forget to update composer update., (*4)
Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:, (*5)
Create config/whmcs.php with content:, (*6)
return [
'url'=>'https://whmcsurl/includes/api.php',
'username'=>'yourapiusername',
'password'=>'yourapipassword',
'user_agent'=>'Your Agent Name'
];
'Xuma\Whmcs\WhmcsServiceProvider',
'WHMCS'=> 'Xuma\Whmcs\Facades\Whmcs',
Getting all clients., (*7)
WHMCS::getClients();
Getting single client, (*8)
WHMCS::getClientsDetails($userIdOrEmail);
Getting clients products, (*9)
WHMCS::getClientsProducts($userId)
Getting clients domains, (*10)
WHMCS::getClientsDomains($userId)
Getting clients hashed password, (*11)
WHMCS::getClientsPassword($userId)
Laravel 5 WHMCS API
MIT
laravel api whmcs