cmantito/whmcs-php
Composer 安装命令:
composer require cmantito/whmcs-php
包简介
PHP class for interacting with the WHMCS API.
README 文档
README
#whmcs-php
This is a simple class which allows you to interact with the WHMCS API using PHP.
##Installation
This is now available via composer, and can be included by creating a file called composer.json in the root with the contents:
{
"name": "you/yourappname",
"description": "Your app description",
"version": "1.0",
"homepage": "http://www.yoursite.tld",
"require": {
"cmantito/whmcs-php": "dev-master"
}
}
Then you can run php /path/to/composer.phar install to install it, assuming you've installed composer. See https://getcomposer.org/ for info.
Alternatively, clone the repository and use require_once 'whmcs.class.php'; if you do not use composer.
##Setup
$whmcs = new WHMCS('https://whmcs-example.com/includes/api.php', 'api-user', 'password', 'optional-access-key');
The URL should point to your WHMCS install's api.php file (usually in includes/). api-user is the username of the WHMCS administrator the API will be using, and password should be that user's password. If you are using the API access key instead of IP-filtering with WHMCS, specify the access key as well (optional-access-key), otherwise, leave it off/null. (For more information about the access key, see http://docs.whmcs.com/API:Access_Keys)
##Return
Functions will return a PHP stdClass object with the results retrieved from WHMCS, unless an error is encountered. If WHMCS returns an error, a WhmcsException will be thrown; If CURL encounters an issue connecting (resolution errors, 404, etc), a standard Exception will be thrown. In most cases, WHMCS treats no results as an error condition itself, which will throw a WhmcsException; WHMCS is not very consistent however, so this may not always be the case :o)
##Todo
This is mostly being developed inline with a project for Cadence Networks. As a result most of the functionality is being implemented in the order I need it, which is not necessarily this order:
- Client Management: update domain, upgrade product, send email.
Down the line:
- Client Management: update/delete/get contacts - addContact has recently been added by @hdlopes.
Never (unless someone else submits a pull request for it).
- Support tickets. WHMCS's excuse for support tickets is terrible, and you shouldn't use it. No one should. 0:)
~ Kat, http://twitter.com/b0redofb1nary // Cadence Networks: http://cadence.net.uk
cmantito/whmcs-php 适用场景与选型建议
cmantito/whmcs-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 247 次下载、GitHub Stars 达 9, 最近一次更新时间为 2014 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cmantito/whmcs-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cmantito/whmcs-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 247
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-04-08