2017 © Pedro Peláez
 

library cpanel-whm

Laravel cPanel/WHM API Package.

image

gufy/cpanel-whm

Laravel cPanel/WHM API Package.

  • Tuesday, March 21, 2017
  • by mgufron
  • Repository
  • 4 Watchers
  • 35 Stars
  • 51,664 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 4 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

Laravel cPanel WHM Package

Contents

IMPORTANT NOTE

If you are Laravel 4 user, please use v1.0.1 version instead., (*1)

Installation Guide

To install this package, you can run this code via your terminal, (*2)

    composer require gufy/cpanel-whm:~1.0

Or update your composer.json by adding this line, (*3)

    "gufy/cpanel-whm":"~1.0"

Then, run this code, (*4)

    composer update

After install it, you have to add this line on your app/config/app.php on Service Providers lines., (*5)

    'Gufy\CpanelWhm\CpanelWhmServiceProvider',

It will automatically set an alias 'CpanelWhm' as Facade Accessor., (*6)

Configuration

In this package, it only using hash as its authentication. It's the safer way than using your root plain password. First, run this command, (*7)

    php artisan vendor:publish gufy/cpanel-whm

It will generate new file at config/cpanel-whm.php. Edit necessary lines., (*8)

Usage

For example, if you are trying to get some list of accounts, you can run this., (*9)

    <?php

    Route::get('list-accounts',function(){
        $list_accounts = CpanelWhm::listaccts();

        return $list_accounts;
    });

Multiple Servers

If you have multiple servers saved in your config file, you can access them directly using the CpanelWhm::server('arrayKey') function., (*10)

Example:, (*11)

    <?php

    Route::get('list-accounts',function(){
        $list_accounts = CpanelWhm::server('example1')->listaccts();

        return $list_accounts;
    });

For more information you can go to this links Guide to Cpanel API 2, (*12)

The Versions

21/03 2017

dev-master

9999999-dev

Laravel cPanel/WHM API Package.

  Sources   Download

MIT

The Requires

 

by Mochamad Gufron

laravel framework cpanel whm cpanel api

21/03 2017

v1.0.3

1.0.3.0

Laravel cPanel/WHM API Package.

  Sources   Download

MIT

The Requires

 

by Mochamad Gufron

laravel framework cpanel whm cpanel api

05/05 2015

v1.0.2

1.0.2.0

Laravel CPanel/WHM API Package.

  Sources   Download

MIT

The Requires

 

by Mochamad Gufron

laravel framework cpanel whm cpanel api

17/08 2014

v1.0.1

1.0.1.0

Laravel CPanel/WHM API Package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mochamad Gufron

laravel framework cpanel whm cpanel api

14/07 2014

v1.0.0

1.0.0.0

Laravel CPanel/WHM API Package.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Mochamad Gufron

laravel framework cpanel whm cpanel api