freshost / ispconfig-restapi
ISPconfig RESTAPI 的 API 类
v1.1
2023-03-26 21:03 UTC
Requires
- php: >=5.4.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
This package is auto-updated.
Last update: 2024-09-20 00:16:02 UTC
README
介绍
ispconfig3 远程 API 的简单 REST API PHP 客户端。
要求
- PHP >= 5.4.0(带有 json 支持)
入门指南
Composer
$ composer require freshost/ispconfig-restapi
使用方法
该包可以被包含并在任何 PHP 应用程序中使用。
示例
$call = new ISPconfigAPI(['user' => 'remote_user', 'pass' => 'changeme', 'url' => 'https://ispconfig.local:8080']); $client = $call->call("client_get", ["client_id" => 1]); print_r($client);
您可以通过设置 verifySSL 变量来允许自签名的证书。
$call = new ISPconfigAPI(['user' => 'remote_user', 'pass' => 'changeme', 'url' => 'https://ispconfig.local:8080', 'verifySSL' => false]);
反馈和问题
发现错误或缺少功能?请在这里的 GitHub 上创建一个新的问题。