PHPackages                             detain/myadmin-cpanel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. detain/myadmin-cpanel-licensing

ActiveMyadmin-plugin[Utility &amp; Helpers](/categories/utility)

detain/myadmin-cpanel-licensing
===============================

Cpanel Licensing Class

v2.0.0(6y ago)92.1k[1 issues](https://github.com/myadmin-plugins/cpanel-licensing/issues)[1 PRs](https://github.com/myadmin-plugins/cpanel-licensing/pulls)2LGPL-2.1-onlyPHPPHP &gt;=5.0.0CI failing

Since May 25Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (9)Versions (5)Used By (2)

MyAdmin cPanel Licensing Plugin
===============================

[](#myadmin-cpanel-licensing-plugin)

[![Tests](https://github.com/detain/myadmin-cpanel-licensing/actions/workflows/tests.yml/badge.svg)](https://github.com/detain/myadmin-cpanel-licensing/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/059cc936986f7c0eaa281fad6a87d15c546a6fdc9ecf6d2340227ccaf4265b96/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d6c6963656e73696e672f76657273696f6e)](https://packagist.org/packages/detain/myadmin-cpanel-licensing)[![Total Downloads](https://camo.githubusercontent.com/da9de36c3b822fcbac12b45df5f8cd2dcaba48c5b979e946938d0bd24f4ac151/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d6c6963656e73696e672f646f776e6c6f616473)](https://packagist.org/packages/detain/myadmin-cpanel-licensing)[![License](https://camo.githubusercontent.com/fbc6b6676d27a99ce3d78c0b990ffc28d9fb766913392c3637656ed541470ca1/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d6c6963656e73696e672f6c6963656e7365)](https://packagist.org/packages/detain/myadmin-cpanel-licensing)

A MyAdmin plugin that integrates cPanel license management into the MyAdmin billing and administration platform. It provides automated provisioning, activation, deactivation, IP changes, and billing reconciliation for cPanel licenses through the cPanel Manage2 API.

Features
--------

[](#features)

- Activate and deactivate cPanel licenses via the cPanel Manage2 API
- Change the IP address associated with a cPanel license
- Verify license status for a given IP
- Retrieve license data and account lists by IP
- KernelCare and Ksplice addon license management
- Admin view of all active cPanel licenses
- Unbilled license detection and reporting
- Symfony EventDispatcher integration for the MyAdmin plugin system

Requirements
------------

[](#requirements)

- PHP &gt;= 5.0
- ext-soap
- symfony/event-dispatcher ^5.0
- detain/cpanel-licensing (cPanel Manage2 API wrapper)

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

[](#installation)

Install with Composer:

```
composer require detain/myadmin-cpanel-licensing
```

Usage
-----

[](#usage)

The plugin registers itself with the MyAdmin framework through event hooks. It is loaded automatically by the plugin system when installed.

### Plugin Hooks

[](#plugin-hooks)

The plugin listens on the following events:

EventHandlerDescription`licenses.settings``getSettings`Registers cPanel configuration fields`licenses.activate``getActivate`Provisions a new cPanel license`licenses.reactivate``getActivate`Re-provisions an expired license`licenses.deactivate``getDeactivate`Expires a cPanel license`licenses.deactivate_ip``getDeactivateIp`Expires a license by IP`licenses.change_ip``getChangeIp`Moves a license to a new IP`function.requirements``getRequirements`Registers function autoloading`ui.menu``getMenu`Adds admin menu entries### Standalone Functions

[](#standalone-functions)

The package also provides procedural helper functions:

- `activate_cpanel($ip, $package)` - Activate a license for an IP with a given package ID
- `deactivate_cpanel($ip)` - Deactivate a license by IP
- `verify_cpanel($ip)` - Check if a license is active
- `get_cpanel_license_data_by_ip($ip)` - Get full license details
- `get_cpanel_licenses()` - List all licenses on the account
- `get_cpanel_accounts_for_license_ip($ip)` - Get accounts for a licensed IP

Running Tests
-------------

[](#running-tests)

```
composer install
vendor/bin/phpunit
```

To generate a coverage report:

```
vendor/bin/phpunit --coverage-html coverage/
```

License
-------

[](#license)

This package is licensed under the [LGPL-2.1](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html) license.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance59

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.7% 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 ~444 days

Total

3

Last Release

2434d ago

Major Versions

v0.0.1 → v1.1.02017-06-23

v1.1.0 → v2.0.02019-10-31

### 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 (222 commits)")[![kumar-interserver](https://avatars.githubusercontent.com/u/29834101?v=4)](https://github.com/kumar-interserver "kumar-interserver (3 commits)")

---

Tags

cpanellicensemyadminpluginlicenseadministrationcpanel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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