climba-commerce/cpanel-whm

Laravel cPanel/WHM API Package.
19,829
Install
composer require climba-commerce/cpanel-whm
Latest Version:v1.0.4
PHP:>=5.4.0
License:MIT
Last Updated:Jun 26, 2021
Links: GitHub  ·  Packagist
Maintainer: idealizetecnologia

Laravel cPanel WHM Package

Contents

IMPORTANT NOTE

If you are Laravel 4 user, please use v1.0.1 version instead.

Installation Guide

To install this package, you can run this code via your terminal

	composer require gufy/cpanel-whm:~1.0

Or update your composer.json by adding this line

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

Then, run this code

	composer update

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

	'Gufy\CpanelWhm\CpanelWhmServiceProvider',

It will automatically set an alias 'CpanelWhm' as Facade Accessor.

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

	php artisan vendor:publish gufy/cpanel-whm

It will generate new file at config/cpanel-whm.php. Edit necessary lines.

Usage

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

	<?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.

Example:

	<?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

Related Packages

gufy/cpanel-whm

Laravel cPanel/WHM API Package.

124,866 60
phasehosting/laravel-cpanel-api

Laravel cPanel/WHM API Package.

160 0
biggo6/cpanel

The tool which make your laravel project ready to be deployed to your web shared...

122 23
urameshi/laravel-admin

Customized Laravel Framework for Admin/CPanel.

88 6
zanysoft/cpanel-api

Laravel package for cPanel and WHM API integration

13,713 27