定制 gufy/whmcs-php 二次开发

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

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

gufy/whmcs-php

最新稳定版本:v1.1.0

Composer 安装命令:

composer require gufy/whmcs-php

包简介

Unofficial WHMCS PHP Api Package

README 文档

README

Coverage Status Build Status

Unofficial WHMCS PHP API Package

This package is bring for you who use whmcs so much and yet, you need some of their API.

Installation

To install this package, a simple thing you need to do is run this command in your terminal or command line

  composer require gufy/whmcs-php:~1

Or if you already have a project and you need some package to run WHMCS API, change your composer.json and then add this line

  {
    "require":{
      ...
      "gufy/whmcs-php":"~1"
      ...
    }
  }

Then run composer update in your terminal or similar to it.

Usage

Here is how you use it.

<?php
use Gufy\WhmcsPhp\Config;
use Gufy\WhmcsPhp\Whmcs;

$config = new Config([
  'baseUrl'=>'http://yourwhmcs/includes/api.php',
  'username'=>'your_username',
  'password'=>'your_password'
]);


$whmcs = new Whmcs($config);

// Get Clients
$clients = $whmcs->getclients();


// get client by id
$invoice = $whmcs->getinvoice(['invoiceid'=>1023]);

If you prefer using api keys instead of user password, change the configuration like this.

<?php

use Gufy\WhmcsPhp\Config;
use Gufy\WhmcsPhp\Whmcs;

$config = new Config([
  'baseUrl'=>'http://yourwhmcs/includes/api.php',
  'username'=>'your_username',
  'password'=>'your_api_keys',
  'authType'=>'keys'
]);

$whmcs = new Whmcs($config);

Just call all action which is already defined at WHMCS Developer Documentation

Feedback & Contribution

Love this package? You can add some star to this package or if you have any ideas about improving this package, just fork it and make a pull request. Thank you. 👍

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-23