detain / fantastico-licensing
Fantastico Licensing Class
v2.0.0
2019-04-04 08:51 UTC
Requires
- php: >=5.3.0
- ext-soap: *
Requires (Dev)
- codacy/coverage: dev-master
- codeclimate/php-test-reporter: dev-master
- mockery/mockery: *
- phpunit/phpunit: *
- phpunit/phpunit-mock-objects: *
- satooshi/php-coveralls: *
- vlucas/phpdotenv: *
This package is auto-updated.
Last update: 2024-11-29 02:06:25 UTC
README
Class to itnerface with the Fantastico Licensing API to manage Fantastico Server and VPS License Types. More info at https://www.netenberg.com/fantastico.php
Installation
Install with composer like
composer require detain/fantastico
Basic Usage
Initialization
Initialize passing the API credentials like
use detain\Fantastico; $fantastico = new Fantastico('API Username', 'API Password');
List Licensed IPs
$details = $fantastico->getIpListDetailed(Fantastico::ALL_TYPES);
Note Returns an array of license entries, each entry being an array like
[ 'ipAddress' => '194.116.187.120', 'addedOn' => '2009-05-05 19:39:32', 'isVPS' => 'No', 'status' => 'Active' ]
Create a new License
Add a license for a given IP.
Note Type 1 = Server, Type 2 = VPS
$result = $fantastico->addIp('66.45.228.200', 1);
Change The IP for a License
Note In this example '192.168.1.1' is the original (old) ip and '192.168.1.2' is the updated (new) IP
$result = $fantastico->editIp('192.168.1.1', '192.168.1.2')
License
Fantastico Licensing class is licensed under the LGPL-v2.1 license.