PHPackages                             duxweb/dux-ai - 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-ai

ActiveProject[Framework](/categories/framework)

duxweb/dux-ai
=============

Dux AI 管理系统

v0.0.7-beta(1mo ago)2807MITPHPPHP ^8.4CI failing

Since Mar 7Pushed 1mo agoCompare

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

READMEChangelog (10)Dependencies (19)Versions (8)Used By (0)

Dux AI
======

[](#dux-ai)

 **基于 Dux PHP Admin 的 AI 应用平台**

 把智能体、机器人、知识库、工作流与业务系统统一到一套中后台架构中，让 AI 真正能上线、能扩展、能交付。

 [中文文档](https://ai.docs.dux.plus/) | [GitHub](https://github.com/duxweb/dux-ai) | [云市场](https://cloud.dux.plus) | [Dux PHP Admin](https://github.com/duxweb/dux-php-admin)

 [![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)

[![](https://camo.githubusercontent.com/00b8c8c403ec163ad44dc0012db306da6f3121e593fa2dbfe8281d8412d0b6df/68747470733a2f2f61692e646f63732e6475782e706c75732f6865726f2e706e67)](https://camo.githubusercontent.com/00b8c8c403ec163ad44dc0012db306da6f3121e593fa2dbfe8281d8412d0b6df/68747470733a2f2f61692e646f63732e6475782e706c75732f6865726f2e706e67)

项目定位
----

[](#项目定位)

Dux AI 不是一个单独的聊天页面，而是一个面向真实业务系统的 AI 平台。

你可以把它理解成：

- 一套智能体平台
- 一套机器人接入平台
- 一套知识库与文件解析平台
- 一套工作流与异步任务平台
- 一套可以继续开发传统业务模块和 API 的中后台系统

它建立在 `Dux PHP Admin` 体系上，所以天然具备：

- 模块化扩展能力
- 后台页面与资源接口能力
- 菜单、权限、存储、调度等基础设施
- 继续扩展业务系统的能力

核心特性
----

[](#核心特性)

- 智能体、机器人、知识库、工作流统一在一个平台里
- 智能体能力可持续扩展，支持 HTTP、函数、知识库、MCP、多媒体等能力
- 同步与异步任务都能处理，适合图片、视频、轮询和复杂自动化流程
- 支持文件解析、图片生成、视频生成等多媒体能力
- 支持机器人接入钉钉、飞书、QQ 机器人、企业微信等平台
- 适合与 CRM、OA、预约、电商、客服、医院等业务系统一起建设
- 同时适合传统 API、多端前端和中后台系统开发

适合什么团队
------

[](#适合什么团队)

- 想给自己做一个 AI 助手的小团队
- 想把 AI 接入现有业务系统的企业团队
- 想做知识库问答、机器人服务、工作流自动化的产品团队
- 想把 AI 能力直接接进现有 PHP 中后台系统的开发团队

快速开始
----

[](#快速开始)

### 环境要求

[](#环境要求)

- PHP 8.4+
- MySQL 8.0+（推荐）
- Composer

### 安装项目

[](#安装项目)

```
composer create-project duxweb/dux-ai
cd dux-ai
```

### 启动本地服务

[](#启动本地服务)

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

访问安装向导：

```
http://localhost:8000/

```

安装完成后进入后台：

```
http://localhost:8000/manage/

```

正式部署要点
------

[](#正式部署要点)

正式部署时，至少要注意这几件事：

- Web 根目录指向 `public`
- 配置标准 PHP 重写规则
- 在后台 `系统 -> 计划管理` 里添加 `AI Scheduler`
- 使用守护进程常驻运行：

```
php dux scheduler:run
```

更完整的部署文档请查看文档站中的“系统部署”章节。

文档导航
----

[](#文档导航)

文档主要分为 3 部分：

- 使用：服务商、模型、智能体、机器人、知识库、工作流配置
- 开发：服务调用、能力扩展、驱动注册、工作流开发
- API：对外聊天接口与后台管理接口

相关项目
----

[](#相关项目)

- Dux AI 文档：`https://github.com/duxweb/dux-ai-docs`
- Dux PHP Admin：`https://github.com/duxweb/dux-php-admin`
- Dux Lite：`https://lite2.docs.dux.plus/`
- DVHA：`https://dvha.docs.dux.plus/`

开源协议
----

[](#开源协议)

本项目基于 MIT 协议开源。

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance97

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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 ~2 days

Total

7

Last Release

50d ago

### 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 (27 commits)")

---

Tags

phpframeworkslimdux-lite

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[slim/php-view

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

2739.7M92](/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)[phphleb/webrotor

Asynchronous PHP web server for shared hosting

631.5k1](/packages/phphleb-webrotor)[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)
