承接 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. 👍

统计信息

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

GitHub 信息

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

其他信息

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