PHPackages                             detain/myadmin-directadmin-storage - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. detain/myadmin-directadmin-storage

ActiveMyadmin-plugin[File &amp; Storage](/categories/file-storage)

detain/myadmin-directadmin-storage
==================================

DirectAdmin Storage Plugin for MyAdmin - provides backup storage management via the DirectAdmin API

v1.0.0(6y ago)32.4k2LGPL-2.1-onlyPHPPHP &gt;=5.0.0CI failing

Since Aug 8Pushed 2mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

DirectAdmin Storage Plugin for MyAdmin
======================================

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

[![Tests](https://github.com/detain/myadmin-directadmin-storage/actions/workflows/tests.yml/badge.svg)](https://github.com/detain/myadmin-directadmin-storage/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/c2cb1bf081a82cc2471eecdb070abb49b5bb658ea17467daa8701cab6533b230/68747470733a2f2f636f6465636f762e696f2f67682f64657461696e2f6d7961646d696e2d64697265637461646d696e2d73746f726167652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/detain/myadmin-directadmin-storage)

A MyAdmin plugin that provides backup storage management through the DirectAdmin control panel API. This package handles the full lifecycle of DirectAdmin storage accounts including provisioning, suspension, reactivation, and termination.

Features
--------

[](#features)

- **Account Provisioning** - Automatically creates DirectAdmin user or reseller accounts for backup storage
- **Suspension / Reactivation** - Suspends and unsuspends accounts via the DirectAdmin API
- **Termination** - Cleanly removes accounts when services are cancelled
- **IP Management** - Supports changing IP addresses on existing accounts
- **Hook-based Architecture** - Integrates with MyAdmin's Symfony EventDispatcher-based plugin system
- **HTTPSocket Client** - Includes a curl-based HTTP client tailored for DirectAdmin API communication

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

[](#requirements)

- PHP &gt;= 5.0
- ext-curl
- Symfony EventDispatcher ^5.0

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

[](#installation)

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

Usage
-----

[](#usage)

The plugin registers itself with MyAdmin's event system. Hook registration is handled automatically:

```
use Detain\MyAdminDirectAdminStorage\Plugin;

// Get all event hooks this plugin provides
$hooks = Plugin::getHooks();

// Register hooks with the event dispatcher
foreach ($hooks as $event => $callable) {
    $dispatcher->addListener($event, $callable);
}
```

The `HTTPSocket` class can also be used standalone for DirectAdmin API calls:

```
use Detain\MyAdminDirectAdminStorage\HTTPSocket;

$sock = new HTTPSocket();
$sock->connect('ssl://your-server.com', 2222);
$sock->set_login('admin', 'your-api-key');
$sock->query('/CMD_API_SHOW_ALL_USERS');
$users = $sock->fetch_parsed_body();
```

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

[](#running-tests)

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

To generate a coverage report:

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

API Reference
-------------

[](#api-reference)

For DirectAdmin API documentation, see:

-
- HTTPSocket originally from

License
-------

[](#license)

This package is licensed under the [LGPL-2.1](LICENSE).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance56

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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

Unknown

Total

1

Last Release

2192d ago

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

storageadministrationdirectadmin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k886.6M9.5k](/packages/symfony-http-kernel)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k257.3M12.2k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M415](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k190.0M2.5k](/packages/symfony-security-bundle)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[symfony/form

Allows to easily create, process and reuse HTML forms

2.8k165.6M3.7k](/packages/symfony-form)

PHPackages © 2026

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