detain/cloudlinux-licensing

Cloudlinux Licensing Class

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

This package is auto-updated.

Last update: 2024-04-03 08:58:08 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/

Site Status
Travis-CI Build Status
CodeClimate Code Climate Test Coverage Issue Count
Scrutinizer Scrutinizer Code Quality Code Coverage Build Status
Codacy Codacy Badge Codacy Badge
Coveralls Coverage Status
Packagist Latest Stable Version Total Downloads Latest Unstable Version Monthly Downloads Daily Downloads License

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.