PHPackages                             gegeriyadi/laravel-directadmin - 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. gegeriyadi/laravel-directadmin

ActiveLibrary[API Development](/categories/api)

gegeriyadi/laravel-directadmin
==============================

Simple wrapper for directadmin api.

05PHP

Since Aug 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gegeriyadi/laravel-directadmin)[ Packagist](https://packagist.org/packages/gegeriyadi/laravel-directadmin)[ RSS](/packages/gegeriyadi-laravel-directadmin/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple wrapper Laravel Package for DirectAdmin API
==================================================

[](#simple-wrapper-laravel-package-for-directadmin-api)

Support Laravel 7.x

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

[](#installation)

### Step 1. install the package

[](#step-1-install-the-package)

```
composer require gegeriyadi/directadmin

```

### Step 2. publish config file

[](#step-2-publish-config-file)

publish config file with this command

```
php artisan vendor:publish --provider="Gegeriyadi\LaravelDirectAdmin\DirectAdminServiceProvider"
```

### Step 3. add your directadmin credential on .env file

[](#step-3-add-your-directadmin-credential-on-env-file)

```
DIRECTADMIN_HOSTNAME=your-directadmin-hostname
DIRECTADMIN_PORT=2222
DIRECTADMIN_USERNAME=your-username
DIRECTADMIN_PASSWORD="your-directadmin-password"
DIRECTADMIN_SERVERIP=your-server-ip
```

### Step 4. clear config cache

[](#step-4-clear-config-cache)

and then don't forget to clear the config cache file with this command

```
php artisan config:cache
```

Usage
-----

[](#usage)

code example:

### Get user list

[](#get-user-list)

```
use Gegeriyadi\LaravelDirectAdmin\Facades\DirectAdmin;

$result = DirectAdmin::getUserList();

dd($result);
```

### Create new account

[](#create-new-account)

To create new account you must add `Gegeriyadi\LaravelDirectAdmin\NewAccountParameter` class for pass the new account parameter.

```
use Gegeriyadi\LaravelDirectAdmin\Facades\DirectAdmin;
use Gegeriyadi\LaravelDirectAdmin\NewAccountParameter;

$newAccount = new NewAccountParameter();
$newAccount->domain = 'new-domain.com';
$newAccount->username = 'new-username';
$newAccount->passwd = 'new-userpass';
$newAccount->package = 'yourhostpackage';
$newAccount->email = 'usermail@gmail.com';

$result = DirectAdmin::createNewAccount($newAccount);

dd($result);
```

### Delete an account

[](#delete-an-account)

```
use Gegeriyadi\LaravelDirectAdmin\Facades\DirectAdmin;

$userToDelete = 'usertodelete';

$result = DirectAdmin::deleteAccount($userToDelete);

dd($result);
```

### Suspend an account

[](#suspend-an-account)

```
use Gegeriyadi\LaravelDirectAdmin\Facades\DirectAdmin;

$userToSuspend = 'usertosuspend';

$result = DirectAdmin::suspendAccount($userToSuspend);

dd($result);
```

### Unsuspend an account

[](#unsuspend-an-account)

```
use Gegeriyadi\LaravelDirectAdmin\Facades\DirectAdmin;

$userToUnsuspend = 'usertounsuspend';

$result = DirectAdmin::unsuspendAccount($userToUnsuspend);

dd($result);
```

Contributions
-------------

[](#contributions)

As the DirectAdmin API keeps expanding pull requests are welcomed, as are requests for specific functionality. Pull requests should in general include proper unit tests for the implemented or corrected functions.

For more information about unit testing see the `README.md` in the tests folder.

Legal
-----

[](#legal)

This software was developed for internal use. It is shared with the general public under the permissive MIT license, without any guarantee of fitness for any particular purpose. Refer to the included LICENSE file for more details.

The project is not in any way affiliated with JBMC Software or its employees.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2532535?v=4)[Teguh Riyadi](/maintainers/gegeriyadi)[@gegeriyadi](https://github.com/gegeriyadi)

---

Top Contributors

[![gegeriyadi](https://avatars.githubusercontent.com/u/2532535?v=4)](https://github.com/gegeriyadi "gegeriyadi (12 commits)")

### Embed Badge

![Health badge](/badges/gegeriyadi-laravel-directadmin/health.svg)

```
[![Health](https://phpackages.com/badges/gegeriyadi-laravel-directadmin/health.svg)](https://phpackages.com/packages/gegeriyadi-laravel-directadmin)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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