perryfaro/sdk-whmcs

此包最新版本(0.1)没有可用的许可证信息。

0.1 2016-01-20 23:53 UTC

This package is auto-updated.

Last update: 2024-09-07 00:22:28 UTC


README

安装

WHMCS SDK 可以通过 Composer 安装。运行以下命令

composer require perryfaro/sdk-whmcs

用法

设置认证

$authentication = new Whmcs\Authentication\Authentication;
$authentication->setUrl('https://www.example.com/');
$authentication->setPassword('password');
$authentication->setUsername('username');

发送请求

以下将展示三种发送请求的方式。

选项 1

$class = new Whmcs\Whmcs($authentication);
$class->client()->getClients()->request();

选项 2

$class = new Whmcs\Client\Client($authentication);
$class->getClients()->request();

选项 3

$class = new Whmcs\Client\Options\GetClients($authentication);
$class->request();