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 |
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:
Create config/whmcs.php with content:
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.
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)