detain/cloudlinux-licensing

Cloudlinux 许可证类

v2.0.0 2019-08-27 06:59 UTC

This package is auto-updated.

Last update: 2024-09-03 09:48:26 UTC


README

Logo 与 Cloudlinux 许可证 API 进行交互的类,用于管理 Cloudlinux 和 KernelCare 许可证类型。更多信息请访问 https://www.cloudlinux.com/

安装

使用 composer 进行安装

composer require detain/cloudlinux-licensing

基本用法

初始化

通过传递 API 凭据进行初始化

use Detain\Cloudlinux\Cloudlinux;

$cloudlinux = new Cloudlinux('API Username', 'API Password');

列出已授权的 IP

foreach ($cl->reconcile() as $license)
	echo $license['IP'].' is type '.$license['TYPE'].'. server registered in CLN with license: '.var_export($license['REGISTERED'], true) . "\n";

许可证

Cloudlinux 许可证类遵循 LGPL-v2.1 许可证。