承接 gufy/cpanel-whm 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gufy/cpanel-whm

最新稳定版本:v1.0.3

Composer 安装命令:

composer require gufy/cpanel-whm

包简介

Laravel cPanel/WHM API Package.

README 文档

README

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

统计信息

  • 总下载量: 123.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 61
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 59
  • Watchers: 2
  • Forks: 37
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固