PHP code example of detain / fantastico-licensing

1. Go to this page and download the library: Download detain/fantastico-licensing library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

detain / fantastico-licensing example snippets


use detain\Fantastico;

$fantastico = new Fantastico('API Username', 'API Password');

$details = $fantastico->getIpListDetailed(Fantastico::ALL_TYPES);

[
	'ipAddress' => '194.116.187.120',
	'addedOn' => '2009-05-05 19:39:32',
	'isVPS' => 'No',
	'status' => 'Active'
]

$result = $fantastico->addIp('66.45.228.200', 1);

$result = $fantastico->editIp('192.168.1.1', '192.168.1.2')