Wallogit.com
2017 © Pedro Peláez
cPanel/WHM api that uses cURL, (*1)
This library was written by our company to implement it to a small software. But as our lord t-rex forces us to make this open, here it is., (*2)
{
"require": {
"sdglhm/c-panel_api": "dev-master"
}
}
Run composer and download package to your monster. Did I just said it out loud ?, (*3)
require 'vendor/autoload.php';
This will load library to your PHP thingy you're writing., (*4)
$cpanel = new \eezpal\cPanel_api\cPanel([
'host' => $host,
'user' => $user,
'hash' => $hash
]);
$accounts = $cpanel->accountsummary(
['user'=>'eezpal']
);
var_dump($accounts);
Yes this will give you a warning message. So define all the variables at respective places., (*5)
Made with ♥ http://eezpal.com, (*6)