library whm-api
a php version of whm api wrapper and the wrapper generator
jswh/whm-api
a php version of whm api wrapper and the wrapper generator
- Tuesday, July 5, 2016
- by jswh
- Repository
- 0 Watchers
- 1 Stars
- 13 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 2 Versions
- 0 % Grown
WhmApi
a php version of whm api wrapper and the wrapper generator, (*1)
install
composer require jswh/whm-api
usage
$accessToken = 'test token';
$whm = new Whm('username', 'www.site.com', $accessToken);
$whm->AddonDomians->convert_addon_fetch_domain_details('www.jswh.lol');
Tips
- almost all api are generated by the ApiGenerator by parsing the whm api website
- the api function names are the same with that on the website
- the required parameters are set in the function arguments
- not required parameters can be put into the
$params function argument if exist