定制 sdglhm/c-panel_api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

sdglhm/c-panel_api

Composer 安装命令:

composer require sdglhm/c-panel_api

包简介

README 文档

README

cPanel/WHM api that uses cURL

This library was written by our company to implement it to a small software. But as our lord t-rex forces us to make this open, here it is.

how to use

Update your composer.json file as follows.
{
    "require": {
        "sdglhm/c-panel_api": "dev-master"
    }
}

Run composer and download package to your monster. Did I just said it out loud ?

require 'vendor/autoload.php';

This will load library to your PHP thingy you're writing.

Then fire at will
$cpanel = new \eezpal\cPanel_api\cPanel([
			'host' => $host,
			'user' => $user,
			'hash' => $hash
		]);

$accounts = $cpanel->accountsummary(
	 	['user'=>'eezpal']
	 	); 
	 	
var_dump($accounts);

Yes this will give you a warning message. So define all the variables at respective places.

Made with ♥ http://eezpal.com

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-27