detain/cloudlinux-licensing

Cloudlinux Licensing Class

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

This package is auto-updated.

Last update: 2024-11-03 10:10:30 UTC


README

Logo Class to interface with the Cloudlinux Licensing API to manage Cloudlinux and KernelCare License Types. More info at https://www.cloudlinux.com/

Installation

Install with composer like

composer require detain/cloudlinux-licensing

Basic Usage

Initialization

Initialize passing the API credentials like

use Detain\Cloudlinux\Cloudlinux;

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

List Licensed IPs

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

License

Cloudlinux Licensing class is licensed under the LGPL-v2.1 license.