PHPackages                             detain/fantastico-licensing - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. detain/fantastico-licensing

ActiveLibrary[API Development](/categories/api)

detain/fantastico-licensing
===========================

Fantastico Licensing Class

v2.0.0(7y ago)41.8kLGPL-2.1-onlyPHPPHP &gt;=5.3.0

Since May 22Pushed 1mo agoCompare

[ Source](https://github.com/detain/fantastico-licensing)[ Packagist](https://packagist.org/packages/detain/fantastico-licensing)[ RSS](/packages/detain-fantastico-licensing/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (7)Versions (9)Used By (0)

Fantastico Licensing API
========================

[](#fantastico-licensing-api)

Class to itnerface with the Fantastico Licensing API to manage Fantastico Server and VPS License Types. More info at

[![Latest Stable Version](https://camo.githubusercontent.com/f9fb450a1f28fa51976e28e17bea79aecc3b5c8a1e90986390324e06461a789f/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f76657273696f6e)](https://packagist.org/packages/detain/fantastico-licensing)[![Total Downloads](https://camo.githubusercontent.com/c91b9266228ded69f20d0f152f741ab3dc676f219cfe07bd894ddea3a371dc45/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f646f776e6c6f616473)](https://packagist.org/packages/detain/fantastico-licensing)[![Latest Unstable Version](https://camo.githubusercontent.com/f2610bba3d8df8825f440538732e0b71790091dac63fc227f002596e2b1e704e/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f762f756e737461626c65)](//packagist.org/packages/detain/fantastico-licensing)[![License](https://camo.githubusercontent.com/d6aa758984cd2a0ba670f0cbfb3aa23ddfab07749058b8ea45c2ea022d83310d/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f6c6963656e7365)](https://packagist.org/packages/detain/fantastico-licensing)[![Monthly Downloads](https://camo.githubusercontent.com/10fc0b0f68708fd0bc1b830a75f0529c464896e85610dd07bbab339679927cf8/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f642f6d6f6e74686c79)](https://packagist.org/packages/detain/fantastico-licensing)[![Daily Downloads](https://camo.githubusercontent.com/6036e17e93aef632ee5221e6d438e434a323d42dfcc573dc2c06d712754b842b/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f642f6461696c79)](https://packagist.org/packages/detain/fantastico-licensing)[![Reference Status](https://camo.githubusercontent.com/4b88e49a204d0ab1ad6dd342ea3cdc7c872e1bc922647601b7db25422a2c21ae/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f64657461696e3a66616e7461737469636f2d6c6963656e73696e672f7265666572656e63655f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/php/detain:fantastico-licensing/references)[![Build Status](https://camo.githubusercontent.com/454ddd17e5d683e5034e9f669331e032fbc323d5df390705fcf4cd234623569e/68747470733a2f2f7472617669732d63692e6f72672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/detain/fantastico-licensing)[![Code Climate](https://camo.githubusercontent.com/73b9f05d8dd5d55baae4680a0dba89cea2b88571acbbbe0cc84fce039f8154c9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f6261646765732f6770612e737667)](https://codeclimate.com/github/detain/fantastico-licensing)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c1ff415f63eaef588d9a534b124b5a7d27a101fcaa66778bd568f8960f6a24ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64657461696e2f66616e7461737469636f2d6c6963656e73696e672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/detain/fantastico-licensing/?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/d05ea9ae6f85b66c60321ec10034eda9aabe052e3bf253e5bc008c3811b017a1/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3232363235316663303638663466643562346234656639613430303131643036)](https://www.codacy.com/app/detain/fantastico-licensing)

Installation
------------

[](#installation)

Install with composer like

```
composer require detain/fantastico
```

Basic Usage
-----------

[](#basic-usage)

### Initialization

[](#initialization)

Initialize passing the API credentials like

```
use detain\Fantastico;

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

### List Licensed IPs

[](#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

[](#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

[](#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
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance59

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~113 days

Recently: every ~170 days

Total

7

Last Release

2644d ago

Major Versions

v1.0.5 → v2.0.02019-04-04

PHP version history (2 changes)v1.0.0PHP &gt;=5.0.0

v2.0.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1036e0717211b8030b83cbe729e8ba6ba442fdbd5285fb97a39d7dcfe339342?d=identicon)[detain](/maintainers/detain)

---

Top Contributors

[![detain](https://avatars.githubusercontent.com/u/1364504?v=4)](https://github.com/detain "detain (113 commits)")[![mend-bolt-for-github[bot]](https://avatars.githubusercontent.com/in/16809?v=4)](https://github.com/mend-bolt-for-github[bot] "mend-bolt-for-github[bot] (1 commits)")

---

Tags

apiautomationautoscriptbillingcomposer-packagecpanelfantasticohostinglicenselicense-managementlicensingphpphp-libraryprovisioningresellersaassoftware-licensesoftware-licensingsubscriptionwhmcslicenseadministrationfantastico

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/detain-fantastico-licensing/health.svg)

```
[![Health](https://phpackages.com/badges/detain-fantastico-licensing/health.svg)](https://phpackages.com/packages/detain-fantastico-licensing)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
