Giter Site home page Giter Site logo

cpanel-whm's Introduction

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;
	});

For more information you can go to this links Guide to Cpanel API 2

cpanel-whm's People

Contributors

mgufrone avatar timgws avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.