2017 © Pedro Peláez
 

symfony-bundle cpanel-bundle

Symfony ApCpanelBundle

image

ap/cpanel-bundle

Symfony ApCpanelBundle

  • Saturday, July 12, 2014
  • by ysramirez
  • Repository
  • 2 Watchers
  • 6 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

ApCpanelBundle

Easy to use Cpanel API bundle, (*1)

Step 1: Download ApCpanelBundle using composer

Add ApCpanelBundle by running the command:, (*2)

``` bash $ php composer.phar require ap/cpanel-bundle 'dev-master', (*3)



### Step 2: Register the ApCpanelBundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Ap\CpanelBundle(), ); }

Step 3: Configure the ApCpanelBundle

Edit your config.yml:, (*4)

ap_cpanel:
    domain: yourdomain.com
    whmusername: yourusername
    whmhash: yourhashahahsshshshshdfasdfkjasadfasdf....

Example:

``` php <?php, (*5)

public function someAction() { //..
$cpanel = $this->container->get('ap_cpanel.api');, (*6)

$accountsJson = $cpanel->listaccts()->exec();

$result   = json_decode($accountsJson, TRUE);

//..
} ```, (*7)

The Versions

12/07 2014

dev-master

9999999-dev http://aprendephp.com/cpanel-bundle

Symfony ApCpanelBundle

  Sources   Download

MIT

api cpanel

12/07 2014

1.0.0

1.0.0.0 http://aprendephp.com/cpanel-bundle

Symfony ApCpanelBundle

  Sources   Download

MIT

api cpanel