PHPackages                             avametix/directapi - 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. avametix/directapi

ActiveLibrary[API Development](/categories/api)

avametix/directapi
==================

An API wrapper for the DirectAdmin API

1.0.3(4y ago)1303GPL-3.0-onlyPHPPHP &gt;=7.1.0

Since Feb 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/FirstOrDefault/directapi)[ Packagist](https://packagist.org/packages/avametix/directapi)[ RSS](/packages/avametix-directapi/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

DirectApi
=========

[](#directapi)

DirectApi is a wrapper for the DirectAdmin API.

[![Latest Stable Version](https://camo.githubusercontent.com/f73329ebfdc6e2f375f4debc817175630784bbe4f6b68b7d5e3e654a702faeb8/687474703a2f2f706f7365722e707567782e6f72672f6176616d657469782f6469726563746170692f76)](https://packagist.org/packages/avametix/directapi) [![Total Downloads](https://camo.githubusercontent.com/b5b6dae21428d0e5b458a01967743fd1c50c15090953919d5f2760cc47ee59ae/687474703a2f2f706f7365722e707567782e6f72672f6176616d657469782f6469726563746170692f646f776e6c6f616473)](https://packagist.org/packages/avametix/directapi) [![Latest Unstable Version](https://camo.githubusercontent.com/b680b96a6eb83cb578d234ccf6e7e739268c929ef4ab7805e99beca66743243d/687474703a2f2f706f7365722e707567782e6f72672f6176616d657469782f6469726563746170692f762f756e737461626c65)](https://packagist.org/packages/avametix/directapi) [![License](https://camo.githubusercontent.com/61224bbf2d206e5838bce505e5281bc50b4d0df7b662f5ee5109612023434512/687474703a2f2f706f7365722e707567782e6f72672f6176616d657469782f6469726563746170692f6c6963656e7365)](https://packagist.org/packages/avametix/directapi) [![PHP Version Require](https://camo.githubusercontent.com/8c34715bbeffd6812e567e64d992fdbb5843cb487ec561aeefcef9445859c161/687474703a2f2f706f7365722e707567782e6f72672f6176616d657469782f6469726563746170692f726571756972652f706870)](https://packagist.org/packages/avametix/directapi)

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

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install DirectApi.

```
composer require avametix/directapi
```

Usage
-----

[](#usage)

```
use Avametix\DirectApi;

// Create a new DirectApi instance logged in with user "username" and password "password"
$directapi = new DirectApi(
    'da.domain.io',
    'username',
    'password',
    'https',
    2222
);

// Get user domains
$domains = $directapi->get_api("SHOW_DOMAINS");

if ($domains === false) {
    die(
        "Something went wrong fetching domains for username,
        are you using the right password?"
        );
}

foreach ($domain in $domains) {
    echo $domain . "";
}

// Log-in as user via reseller (directapi is initialised with reseller or admin login)
$directapi->login_as('clientuser');

// ...

$directapi->logout();
```

All DirectAdmin API commands can be found in the [DirectAdmin documentation](https://www.directadmin.com/api.php).

Contributing
------------

[](#contributing)

Contributions are primarily made by members of [Avametix](https://avametix.com), however pull requests are welcome. Planning a major change? Please open an issue first and discuss your changes.

License
-------

[](#license)

[GNU General Public License](https://choosealicense.com/licenses/gpl-3.0/)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

1645d ago

### Community

Maintainers

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

---

Top Contributors

[![RIMhosting](https://avatars.githubusercontent.com/u/62264716?v=4)](https://github.com/RIMhosting "RIMhosting (2 commits)")

---

Tags

api-wrapperdirectadmindirectadmin-serversapiwrapperdirectadmin

### Embed Badge

![Health badge](/badges/avametix-directapi/health.svg)

```
[![Health](https://phpackages.com/badges/avametix-directapi/health.svg)](https://phpackages.com/packages/avametix-directapi)
```

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4562.5M11](/packages/gabrielbull-ups-api)[php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

16553.3k1](/packages/php-tmdb-laravel)[php-tmdb/symfony

Symfony Bundle for TMDB (The Movie Database) API. Provides easy access to the php-tmdb/api library.

3549.8k](/packages/php-tmdb-symfony)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1120.2k](/packages/lasserafn-laravel-economic)

PHPackages © 2026

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