pmill/php-plesk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

pmill/php-plesk

Composer 安装命令:

composer require pmill/php-plesk

包简介

PHP client for the Plesk RPC API

README 文档

README

php-plesk

Introduction

This package contains a PHP client for the Plesk RPC API.

The following features are currently supported:

  • List IP addresses
  • List service plans
  • Get server information and stats
  • List/add/update/delete clients
  • List/add/update/delete subscriptions
  • List/add/update/delete sites
  • List/add/update/delete email addresses
  • List/add/update/delete domain aliases
  • List/add/update/delete subdomains
  • List database servers
  • List/add/delete databases
  • Add database users
  • Further functionality can be seen in the examples folder
  • Email dev.pmill@gmail.com with requests for exposing further functionality

Requirements

This library package requires PHP 5.4 or later and Plesk 12.0 or above.

Usage

The following example shows how to retrieve the list of websites available for the supplied user.

$config = array(
    'host'=>'example.com',
    'username'=>'username',
    'password'=>'password',
);

$request = new \pmill\Plesk\ListClients($config);
$info = $request->process();

Further examples are available in the examples directory.

Version History

Unversioned (13 Apr 2013)

  • First public release of php-plesk.

0.1.0 (08/10/2014)

  • Updated Create Email Address xml payload for newer versions of the Plesk API
  • Exposed further functionality

0.2.0 (09/10/2014)

  • Added support for composer installs
  • Updated code for psr-0 autoloading
  • Updated code for psr-1 basic coding standard
  • Updated code for psr-2 coding style guide

0.3.0 (16/10/2014)

  • Added functionality for ip addresses, service plans, clients, subscriptions and server information
  • Added test script
  • Updated classes to throw exceptions when requests fail
  • Sorted examples folder into areas of functionality

0.4.0 (05/02/2015)

  • Added functionality for databases
  • Updated test script

0.5.0 (08/03/2016)

  • Added secret key functionality
  • Updated error handling to expose Plesk error code
  • Added html entity escaping

0.5.1 (05/04/2016)

  • Added mail preferences functionality
  • Added wordpress functionality
  • Added APS functionality
  • Added ssl certificate functionality

0.5.2 (18/05/2016)

  • Updated ListSubscriptions to retrieve plan guids
  • Updated GetServicePlan to accept 'guid' as a filter option
  • Updated DeleteSiteAlias to accept 'alias' as a filter option

0.5.3 (24/05/2016)

  • Code quality improvements
  • Updated ListSubscriptions to retrieve subscription status

0.5.4 (13/06/2016)

  • Added GetSubscription functionality (thanks ghermans)

0.5.5 (15/08/2016)

  • Added GetTraffic functionality (thanks texh)
  • Added ListDNS functionality (thanks carlswart)

0.5.6 (01/09/2016)

  • Error handling bug fix
  • Exposed service plan guid property (thanks ghermans)

Copyright and License

php-plesk Copyright (c) 2013 pmill (dev.pmill@gmail.com) All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

pmill/php-plesk 适用场景与选型建议

pmill/php-plesk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.82k 次下载、GitHub Stars 达 39, 最近一次更新时间为 2014 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「api」 「plesk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pmill/php-plesk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pmill/php-plesk 我们能提供哪些服务?
定制开发 / 二次开发

基于 pmill/php-plesk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 39
  • Watchers: 10
  • Forks: 35
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2014-10-09