PHPackages                             detain/myadmin-cpanel-webhosting - 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. [Admin Panels](/categories/admin)
4. /
5. detain/myadmin-cpanel-webhosting

ActiveMyadmin-plugin[Admin Panels](/categories/admin)

detain/myadmin-cpanel-webhosting
================================

MyAdmin cPanel Webhosting Plugin - Provides cPanel and WHM integration for the MyAdmin control panel, including account provisioning, DNS management, reseller configuration, and XML-API client functionality.

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

Since Jun 8Pushed 1mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (8)Versions (8)Used By (0)

MyAdmin cPanel Webhosting Plugin
================================

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

[![Tests](https://github.com/detain/myadmin-cpanel-webhosting/actions/workflows/tests.yml/badge.svg)](https://github.com/detain/myadmin-cpanel-webhosting/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/27f6c03047b0e97ead1ff5e39cd0c3577805b7c9dafb55d930d9fd7685fa1b1f/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d776562686f7374696e672f76657273696f6e)](https://packagist.org/packages/detain/myadmin-cpanel-webhosting)[![Total Downloads](https://camo.githubusercontent.com/da7d0d9520bad30d11d0f6563f9181edbb635291b6ccb4bbf83bd2cf8c1a6990/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d776562686f7374696e672f646f776e6c6f616473)](https://packagist.org/packages/detain/myadmin-cpanel-webhosting)[![License](https://camo.githubusercontent.com/46e8c53224b811bb3a812c4fc1b80b7e7d45c93ddf9b48324434eda15f8d56b9/68747470733a2f2f706f7365722e707567782e6f72672f64657461696e2f6d7961646d696e2d6370616e656c2d776562686f7374696e672f6c6963656e7365)](https://packagist.org/packages/detain/myadmin-cpanel-webhosting)

A MyAdmin plugin that provides full cPanel and WHM integration for webhosting management. This package handles account provisioning, suspension, reactivation, termination, DNS zone management, reseller configuration, package management, and SSL certificate operations through the cPanel XML-API.

Features
--------

[](#features)

- **Account Management** - Create, suspend, unsuspend, and terminate cPanel hosting accounts
- **Reseller Support** - Full reseller account setup with ACL configuration and account limits
- **DNS Management** - Add, edit, and remove DNS zones and records
- **Package Management** - Create, edit, delete, and list hosting packages
- **SSL Certificate Management** - Generate, install, and list SSL certificates
- **Auto-Login** - API endpoint for automatic cPanel login via session tokens
- **XML-API Client** - Complete PHP client for the cPanel/WHM XML-API with curl and fopen support
- **Event-Driven Architecture** - Integrates with Symfony EventDispatcher for modular hook-based operation

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

[](#installation)

Install via Composer:

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

Usage
-----

[](#usage)

### Plugin Registration

[](#plugin-registration)

The plugin registers event hooks automatically through the `getHooks()` method:

```
use Detain\MyAdminCpanel\Plugin;

$hooks = Plugin::getHooks();
// Returns hook mappings for: settings, activate, reactivate,
// deactivate, terminate, api.register, function.requirements, ui.menu
```

### XML-API Client

[](#xml-api-client)

The included `xmlapi` class provides direct access to the cPanel/WHM XML-API:

```
$whm = new xmlapi('your-server-ip');
$whm->set_port('2087');
$whm->set_protocol('https');
$whm->set_output('json');
$whm->hash_auth('root', $accessHash);

// List accounts
$accounts = $whm->listaccts();

// Create an account
$whm->createacct([
    'username' => 'newuser',
    'password' => 'securepass',
    'domain'   => 'example.com',
]);
```

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

[](#running-tests)

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

To generate a coverage report:

```
vendor/bin/phpunit --coverage-text
```

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance61

Regular maintenance activity

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 99% 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 ~166 days

Recently: every ~208 days

Total

6

Last Release

2477d ago

Major Versions

v0.9.4 → v2.0.02019-09-19

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

---

Tags

cpanelmyadminpluginservicewebhostingwebhostmanagerwhmadministrationcpanelwebhosting

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M379](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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