PHPackages                             sudo/adminer - 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. [Database &amp; ORM](/categories/database)
4. /
5. sudo/adminer

ActiveLibrary[Database &amp; ORM](/categories/database)

sudo/adminer
============

DB manager Sudo package

1.0.0(5y ago)017MITHTML

Since Jun 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Sudo-E-Commerce/adminer)[ Packagist](https://packagist.org/packages/sudo/adminer)[ RSS](/packages/sudo-adminer/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Hướng dẫn sử dụng Sudo Adminer
------------------------------

[](#hướng-dẫn-sử-dụng-sudo-adminer)

**Giới thiệu:** Đây là package dùng để quản lý trực tiếp Database của dự án.

Mặc định package sẽ tạo ra giao diện quản lý DB được đặt tại `/{admin_dir}/adminer/view`, trong đó admin\_dir là đường dẫn admin được đặt tại `config('app.admin_dir')`. Chỉ dev mới được truy cập trang này.

### Cài đặt để sử dụng

[](#cài-đặt-để-sử-dụng)

- Package cần phải có base `sudo/core` để có thể hoạt động không gây ra lỗi
- Để có thể sử dụng Package cần require theo lệnh `composer require sudo/adminer`
- Để sử dụng thì cần phải thêm text prefix config('SudoAdminer.route.prefix') tại except đặt ở app/Http/Middleware/VerifyCsrfToken.php

    ```
      protected $except = [
      	{prefix_text_here},
      	...
      ];

    ```
- Publish các file cần thiết sử dụng `php artisan vendor:publish --tag=sudo/adminer`

### Cấu hình tại Menu

[](#cấu-hình-tại-menu)

```
[
	'type' 		=> 'single',
	'name' 		=> 'Quản lý Database',
	'icon' 		=> 'fas fa-database',
	'route' 	=> 'admin.adminer.view',
	'role'		=> 'adminer_view'
],

```

- Vị trí cấu hình được đặt tại `config/SudoMenu.php`
- Để có thể hiển thị tại menu, chúng ta có thể đặt đoạn cấu hình trên tại `config('SudoMenu.menu')`

### Publish

[](#publish)

Mặc định khi chạy lệnh `php artisan sudo/core` đã sinh luôn cho package này, nhưng có một vài trường hợp chỉ muốn tạo lại riêng cho package này thì sẽ chạy các hàm dưới đây:

- Khởi tạo chung theo core
    - Tạo assets và configs `php artisan vendor:publish --tag=sudo/core`
    - Chỉ tạo assets `php artisan vendor:publish --tag=sudo/core/assets`
    - Chỉ tạo configs `php artisan vendor:publish --tag=sudo/core/config`
- Khởi tạo riêng theo package
    - Tạo assets và configs `php artisan vendor:publish --tag=sudo/adminer`
    - Chỉ tạo assets `php artisan vendor:publish --tag=sudo/adminer/assets`
    - Chỉ tạo configs `php artisan vendor:publish --tag=sudo/adminer/config`

### Sử dụng

[](#sử-dụng)

Cấu hình Đường dẫn tại config('SudoAdminer.route.prefix')

Cấu hình Middleware tại `config('SudoAdminer.route.middleware')` hoặc .ENV `SUDO_ADMINER_MIDDLEWARE={middleware_string}`, trong đó middleware\_string là chuỗi các middleware cách nhau bởi dấu phẩy ',' VD web,auth-admin

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2153d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fae158f0bdfab51fba69937e810ed2db9f11a04eef301fd0c82cb568081ff86?d=identicon)[sudoedev](/maintainers/sudoedev)

---

Top Contributors

[![hieunvph04479](https://avatars.githubusercontent.com/u/36782331?v=4)](https://github.com/hieunvph04479 "hieunvph04479 (9 commits)")

### Embed Badge

![Health badge](/badges/sudo-adminer/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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