PHPackages                             detain/myadmin-directadmin-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-directadmin-licensing

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

detain/myadmin-directadmin-licensing
====================================

DirectAdmin Licensing plugin for the MyAdmin ecosystem. Provides activation, deactivation, IP management, and OS modification for DirectAdmin server and VPS licenses.

v2.0.0(6y ago)63.0k21LGPL-2.1-onlyPHPPHP &gt;=5.0.0CI failing

Since May 25Pushed 2mo agoCompare

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

READMEChangelog (3)Dependencies (8)Versions (6)Used By (1)

DirectAdmin Licensing Plugin for MyAdmin
========================================

[](#directadmin-licensing-plugin-for-myadmin)

[![Tests](https://github.com/detain/myadmin-directadmin-licensing/actions/workflows/tests.yml/badge.svg)](https://github.com/detain/myadmin-directadmin-licensing/actions/workflows/tests.yml)[![Codecov](https://camo.githubusercontent.com/2bda906494262f6ebd37d93beefff226a894292930fd41ee642367773d830669/68747470733a2f2f636f6465636f762e696f2f67682f64657461696e2f6d7961646d696e2d64697265637461646d696e2d6c6963656e73696e672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/detain/myadmin-directadmin-licensing)[![Latest Stable Version](https://camo.githubusercontent.com/99e1f315049b81a65345f8c47c323fc5be2e985b8ed7b554cda76a3066d6e07b/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d64697265637461646d696e2d6c6963656e73696e672f76657273696f6e)](https://packagist.org/packages/detain/myadmin-directadmin-licensing)[![Total Downloads](https://camo.githubusercontent.com/957806ace9aadc1f23b02aaec4d2909876181318658fc946fb72f993835263b0/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d64697265637461646d696e2d6c6963656e73696e672f646f776e6c6f616473)](https://packagist.org/packages/detain/myadmin-directadmin-licensing)[![License](https://camo.githubusercontent.com/a90f0d302c1a9b90b65be333434f6e51c4624cbba81fdcec533a61ba0e3fc601/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d64697265637461646d696e2d6c6963656e73696e672f6c6963656e7365)](https://packagist.org/packages/detain/myadmin-directadmin-licensing)

A MyAdmin plugin that integrates DirectAdmin license management into the billing and provisioning system. It supports selling, activating, deactivating, and managing both paid and free-tier DirectAdmin server and VPS licenses via the DirectAdmin API.

Features
--------

[](#features)

- Automated license provisioning when customers purchase DirectAdmin licenses
- License activation and deactivation through the DirectAdmin API
- IP address change support for migrating licenses between servers
- Free-tier license management for qualifying VPS packages
- OS type detection and mapping for license compatibility
- Admin panel integration with license management menus and settings
- Payment processing for newly created licenses

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

[](#installation)

Install with Composer:

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

Usage
-----

[](#usage)

This package is designed to run within the MyAdmin hosting management platform. The `Plugin` class registers event hooks that the MyAdmin framework dispatches during license lifecycle operations.

### Plugin Registration

[](#plugin-registration)

The plugin is auto-discovered by MyAdmin through Composer's plugin installer. It registers handlers for:

- `licenses.settings` -- Admin configuration fields (API credentials, stock settings)
- `licenses.activate` / `licenses.reactivate` -- License provisioning on purchase
- `licenses.deactivate` / `licenses.deactivate_ip` -- License cancellation
- `function.requirements` -- Lazy-loading of procedural API functions

### Available Functions

[](#available-functions)

FunctionDescription`get_directadmin_license_types()`Returns supported OS type mappings`activate_directadmin()`Creates and activates a paid license`deactivate_directadmin()`Cancels an active license`directadmin_deactivate()`Alias that delegates to `deactivate_directadmin()``get_directadmin_licenses()`Lists all licenses on the account`get_directadmin_license()`Fetches a single license record by ID`get_directadmin_license_by_ip()`Finds a license by IP address`directadmin_ip_to_lid()`Resolves an IP address to a license ID`directadmin_makepayment()`Processes payment for a newly created license`directadmin_get_os_list()`Retrieves available OS types from the DA API`directadmin_get_products()`Retrieves the product catalog from the DA API`directadmin_modify_os()`Changes the OS type of a license`activate_free_license()`Provisions a free-tier license`delete_free_license()`Removes a free-tier licenseRunning Tests
-------------

[](#running-tests)

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

To generate a coverage report:

```
vendor/bin/phpunit --coverage-html build/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

44

—

FairBetter than 90% of packages

Maintenance57

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% 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 ~289 days

Total

4

Last Release

2494d ago

Major Versions

v0.0.1 → v1.0.02017-05-31

v1.1.0 → v2.0.02019-10-10

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

directadminlicensemyadminpluginlicenseadministrationdirectadmin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k50](/packages/civicrm-civicrm-core)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.6M367](/packages/symfony-ai-platform)

PHPackages © 2026

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