2017 © Pedro Peláez
 

library c-panel_api

image

sdglhm/c-panel_api

  • Wednesday, April 26, 2017
  • by sdglhm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

cPanel_api

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)

how to use

Update your composer.json file as follows.
{
    "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)

Then fire at will
$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)

The Versions

26/04 2017

dev-master

9999999-dev

  Sources   Download

29/09 2016

dev-analysis-qBPAyA

dev-analysis-qBPAyA

  Sources   Download