PHPackages                             duxweb/dux-php-admin - 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. [Framework](/categories/framework)
4. /
5. duxweb/dux-php-admin

ArchivedProject[Framework](/categories/framework)

duxweb/dux-php-admin
====================

Dux PHP Admin 后台管理系统

v0.1.3(1mo ago)13392MITPHPPHP ^8.4CI failing

Since Aug 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/duxweb/dux-php-admin)[ Packagist](https://packagist.org/packages/duxweb/dux-php-admin)[ RSS](/packages/duxweb-dux-php-admin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (29)Versions (8)Used By (0)

Dux PHP Admin
=============

[](#dux-php-admin)

 **🚀 PHP 8.4 + Vue 3 的一体化后台解决方案**

 传统全栈的顺手体验 + 前后端分离的规范化优势，基于一体化模块架构

 [📖 最新文档](https://ai.docs.dux.plus/) | [🏠 主仓库](https://github.com/duxweb/dux-ai) | [云市场](https://cloud.dux.plus) | [🌐 官网](https://www.dux.cn)

 [![PHP Version](https://camo.githubusercontent.com/1583131b76ecae5c367fad8dff78d2251ad33509f99e56100d9b376c565bf970/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e342b2d626c75652e737667)](https://camo.githubusercontent.com/1583131b76ecae5c367fad8dff78d2251ad33509f99e56100d9b376c565bf970/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e342b2d626c75652e737667) [![License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667) [![Version](https://camo.githubusercontent.com/4bafb8520f486180357a3e9fa2627377830336dd4b22b78336fcbf6a0e2ba835/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76312e302d6f72616e67652e737667)](https://camo.githubusercontent.com/4bafb8520f486180357a3e9fa2627377830336dd4b22b78336fcbf6a0e2ba835/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76312e302d6f72616e67652e737667) [![Stars](https://camo.githubusercontent.com/9c64da22fa2ddfe61c4ea6a3f008e0f77a124773e1e6977d0c4204743f1c7627/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6475787765622f6475782d7068702d61646d696e3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/9c64da22fa2ddfe61c4ea6a3f008e0f77a124773e1e6977d0c4204743f1c7627/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6475787765622f6475782d7068702d61646d696e3f7374796c653d736f6369616c)

---

Important

业务调整说明： 为了方便开发者的维护工作、更好服务用户，并顺应当前 AI 时代的发展方向，`dux-php-admin` 已并入 `DuxAI`。 后续框架能力、AI 模块、系统模块与相关文档将统一在 Dux AI 体系内持续维护。

最新文档：`https://ai.docs.dux.plus/`主仓库：`https://github.com/duxweb/dux-ai`

✨ 核心特性
------

[](#-核心特性)

- 🚀 **一体化模块架构**：后端接口与前端页面在同一模块中组织，结构清晰
- ⚡ **基座模式**：页面放进模块即可访问，修改后刷新生效，无需每页打包
- 🔐 **权限与菜单联动**：权限节点与菜单名称一致，登录后自动过滤无权限菜单
- 📊 **资源化后端**：资源类自动生成 CRUD、路由与权限，统一响应结构
- 🧩 **系统模块开箱即用**：用户、角色、部门、日志、存储、任务调度等常用功能
- 🛠️ **命令行工具**：db:sync、menu:sync、route:list、permission:list 一站式支持

🏗️ 架构理念（直观理解）
-------------

[](#️-架构理念直观理解)

你可以把它理解为 **iOS + App** 或 **微信 + 小程序** 的关系：

- **后端是基座**：路由、权限、菜单、接口统一管理
- **页面是模块**：放在模块目录中，按需加载

既保留传统全栈的直观体验，又保持前后端分离的规范化优势。

🚀 快速开始（最短流程）
------------

[](#-快速开始最短流程)

最新安装与使用说明请优先以 Dux AI 文档为准：

- 文档入口：
- 主仓库：

### 1) 确认环境

[](#1-确认环境)

```
php -v
composer self-update
```

> 请勿使用 Composer 镜像源，保持官方源即可。

### 2) 获取源码并安装依赖

[](#2-获取源码并安装依赖)

```
git clone https://github.com/duxweb/dux-php-admin.git dux-php-admin
cd dux-php-admin
composer install
```

### 3) 配置数据库

[](#3-配置数据库)

编辑 `config/database.toml`：

```
[db.drivers.default]
driver = "mysql"
host = "localhost"
database = "dux_admin"
username = "root"
password = "root"
port = 3306
prefix = "app_"
```

### 4) 初始化数据库与菜单

[](#4-初始化数据库与菜单)

```
php dux db:sync
php dux menu:sync
```

### 5) 启动服务

[](#5-启动服务)

```
php -S localhost:8000 -t public
```

访问后台：

-
- 默认账号：`admin / admin`

> 首次登录后请立即修改默认密码。

📦 前端基座更新（可选）
------------

[](#-前端基座更新可选)

只有在修改 `web/` 目录或升级前端依赖时才需要更新基座：

```
bun install
bun run build
```

构建产物输出到：

```
/public/static/web

```

📚 文档
----

[](#-文档)

- 最新文档：
- 框架说明：
- 扩展开发：

🤝 参与贡献
------

[](#-参与贡献)

后续问题反馈与功能演进请优先在 Dux AI 主仓库进行。

- Issues：
- Discussions：
- PR：

📄 开源协议
------

[](#-开源协议)

本项目基于 MIT 协议开源。

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance89

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93% 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 ~39 days

Recently: every ~12 days

Total

7

Last Release

55d ago

PHP version history (2 changes)v0.0.1PHP ^8.2

v0.0.3PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![duxphp](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/duxphp "duxphp (53 commits)")[![dotaclover](https://avatars.githubusercontent.com/u/3917451?v=4)](https://github.com/dotaclover "dotaclover (4 commits)")

---

Tags

phpframeworkslimdux-lite

### Embed Badge

![Health badge](/badges/duxweb-dux-php-admin/health.svg)

```
[![Health](https://phpackages.com/badges/duxweb-dux-php-admin/health.svg)](https://phpackages.com/packages/duxweb-dux-php-admin)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[slim/php-view

Render PHP view scripts into a PSR-7 Response object.

2739.7M95](/packages/slim-php-view)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[davidepastore/slim-config

A slim middleware to read configuration from different files based on hassankhan/config

338.9k1](/packages/davidepastore-slim-config)[patricksavalle/slim-rest-api

Production-grade REST-API App-class for PHP SLIM, in production on https://zaplog.pro (https://api.zaplog.pro/v1)

101.4k](/packages/patricksavalle-slim-rest-api)

PHPackages © 2026

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