定制 kseven/cpanelapi 二次开发

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

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

kseven/cpanelapi

最新稳定版本:0.0.2

Composer 安装命令:

composer require kseven/cpanelapi

包简介

Manage cPanel with PHP

README 文档

README

Manage your cPanel server with this PHP library. Simple to use. With this PHP library, you can manage your cPanel.

License Build Status Code Coverage Code Quality Code Quality

Installation

You can install this library with composer.

composer require kseven/cpanelapi

Usage example

<?php
  require "vendor/autoload.php";

  //Build CPanel Client
  use KSeven\CPanel\Init;
  use KSeven\CPanel\Functions\Databases;

  $Auth = [
    "HOST" => "seuhost",
    "PORT" => "2083",
    "USER" => "user",
    "PASSWORD" => "pass"
  ];

  $cPanel = new Init($Auth);
  $Database = new Databases($cPanel);

  var_dump($Database->getDatabases());

Available Functionality

  • CPanel
    • Databases (MySQL®)
      • Database Information
        • getServerInformationDatabase (This function returns information about the account's host)
        • LocateServerDatabase (This function returns information about the account's host.)
      • Database Management
        • CheckDatabase (This function checks for errors in all of the tables in a database.)
        • CreateDatabase (This function creates a database.)
        • DeleteDatabase (This function deletes a database.)
        • DumpSchemaDatabase (This function returns a string that you can give to to recreate a particular database’s schema.)
        • getDatabases (This function lists an account's databases.)
        • RenameDatabase (This function renames a database.)
        • RepairDatabase (This function repairs all of the tables in a database)
        • UpdatePrivilegesDatabase (This function updates privileges for all databases and users on an account.)
      • Remote Databases
        • AddHostDatabase (This function authorizes a remote host to access the account's databases.)
        • AddHostNoteDatabase (This function adds a note about a remote server.)
        • DeleteHostDatabase (This function removes a remote host's access to the account's databases.)
        • getHostNotesDatabases (This function returns the notes associated with the account's remote hosts.)
      • User Management
        • CreateUserDatabase (This function creates a database user.)
        • DeleteUserDatabase (This function deletes a user.)
        • getPrivilegesOnDatabase (This function lists a database user's privileges.)
        • getRestrictionsDatabases (This function lists a database's name, username length restrictions, and database prefix.)
        • ListRoutinesDatabases (This function returns a database user's routines.)
        • ListUsersDatabases (This function lists an account's database users.)
        • RenameUserDatabase (This function renames a database user.)
        • RemovePrivilegesUserDatabase (This function revokes a database user's privileges.)
        • SetPasswordUserDatabase (This function sets a database user's password.)
        • SetPrivilegesUserDatabase (This function sets a database user's privileges.)
    • no more (pls)

Contibutions

You are always welcome to contribute in this library.

See our list of contributors

Issues/Bug Reports

Please create an issue or report a bug in this GitHub repository and we will be happy to look into that.

License

The MIT License (MIT)

Copyright (c) 2014 Domain Reseller API

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固