PHPackages                             duxphp/duxphp - 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. duxphp/duxphp

ActiveLibrary[Framework](/categories/framework)

duxphp/duxphp
=============

DuxPHP Framework

2.1.27(2y ago)201.1k8[1 issues](https://github.com/duxphp/duxphp-archive/issues)[1 PRs](https://github.com/duxphp/duxphp-archive/pulls)Apache-2.0PHPPHP &gt;=7.4CI passing

Since May 28Pushed 2y ago5 watchersCompare

[ Source](https://github.com/duxphp/duxphp-archive)[ Packagist](https://packagist.org/packages/duxphp/duxphp)[ Docs](http://duxphp.com/)[ RSS](/packages/duxphp-duxphp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (18)Versions (93)Used By (0)

 [ ![DuxCMS](https://github.com/duxphp/duxphp/raw/master/docs/logo.png?raw=true) ](https://github.com/duxphp/duxphp)

 为快速开发而生

 [ ![maven](https://camo.githubusercontent.com/1f832d2722b5b0a6ed6dbde467e1d393cc1fce2384cc7e1be0f7848704c76cd8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6475787068702d76322d626c75652e737667) ](https://github.com/duxphp/duxphp) [ ![code style](https://camo.githubusercontent.com/a41452e3579fc86f65f7b497e4784ddd473428a2ef8ac19381288cef921988da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6170616368652d6c6963656e7365732d627269676874677265656e2e737667) ](https://github.com/duxphp/duxphp/blob/master/LICENSE)

简介
==

[](#简介)

DuxPHP是一款轻量级高效率的PHP开发框架，框架支持HMVC模式，同时兼容Http Api模式，框架经过长时间的各种项目开发与迭代，目前用于Dux各个系列产品中的底层应用，框架遵循简单易用的原则，不过多封装多余组件进行开发，力求为开发者提供快速开发高质量应用体验。

特点
==

[](#特点)

- 单入口模式
- 友好路由
- MHVC架构
- Api请求处理
- Cli模式支持
- Composer支持
- 友好异常管理
- 简单可扩展的模板引擎
- 简单易用的数据模型
- 多种缓存引擎
- NoSql存储引擎
- 图片处理
- 无限分类
- Http请求
- 数据验证
- 客户端信息
- 数据分页
- 图片验证码
- 多线程队列

引入组件
====

[](#引入组件)

引入部分composer组件进行适应性封装

- intervention/image
- ralouphie/mimey
- endroid/qr-code
- phpfastcache/phpfastcache
- guzzlehttp/guzzle
- gregwar/captcha
- scrivo/highlight.php
- jenssegers/agent
- erusev/parsedown
- leafo/scssphp
- gkralik/php-uglifyjs
- overtrue/pinyin
- alchemy/zippy
- fukuball/jieba-php

环境
==

[](#环境)

- 语言版本：PHP 7.2+
- 数据库版本：Mysql 5.6+
- WEB服务器：Apache/Nginx

文档
==

[](#文档)

[中文开发使用文档](https://duxphp.github.io/duxphp/)

开源协议
====

[](#开源协议)

[Apache License](https://github.com/duxphp/duxphp/blob/master/LICENSE)

> 本开源协议只适用于该框架，不包含框架的衍生产品，衍生产品请看对应的授权协议

讨论
==

[](#讨论)

QQ群：131331864

> 本系统非盈利产品，为防止垃圾广告和水群已开启收费入群，收费入群并不代表我们可以无条件回答您的问题，入群之前请仔细查看文档，常见安装等问题通过搜索引擎解决，切勿做伸手党

bug反馈
=====

[](#bug反馈)

issues反馈

1.x ~ 2.x 更新内容
==============

[](#1x--2x-更新内容)

- 统一框架内方法变量为严格模式
- 更新优化异常处理模块
- 独立发送类与文件管理类
- 清理无用冗余函数
- 优化数据过滤验证类
- 增加多线程队列处理
- 更新客户端类的部分方法为第三方类
- 更换验证码为第三方类
- 优化更新Mongo数据库类为ModelNo类
- 增加路由类入口又路由接管
- 增加多驱动日志类代替现有方法
- 增加依赖注入来更好的管理加载方法
- 优化配置类为多数组嵌套功能
- 更换图像处理驱动为 `intervention/image`
- 更换缓存驱动为 `phpfastcache/phpfastcache`

1.x ~ 2.x 废弃变更
==============

[](#1x--2x-废弃变更)

- 删除部分冗余函数
- 删除Sql安装类统一到Tools类
- 删除上传类改为独立文件管理类库
- 删除缓存类变更为 `dux/com/Cache`
- 删除日志类变更为 `dux/com/log`
- 删除Cookie类使用原生代替
- 删除邮件类改为独立推送类库
- 删除拼音类统一到Tools类
- 删除分页类统一到Tools类
- 删除存储类统一使用缓存类
- 删除字符串处理类统一到函数库
- 删除Zip类统一到Tools类
- Http类取消 `doGet` 和 `doPost` 之外的请求方法

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~62 days

Total

91

Last Release

1059d ago

Major Versions

1.1.50 → 2.0.02019-11-07

PHP version history (4 changes)v1.0.0PHP &gt;=7.0

2.0.0PHP &gt;=7.2

2.0.5PHP &gt;=7.3

2.1.25PHP &gt;=7.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 (276 commits)")[![dux-web](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/dux-web "dux-web (276 commits)")[![t199398](https://avatars.githubusercontent.com/u/19924233?v=4)](https://github.com/t199398 "t199398 (18 commits)")

---

Tags

duxphp

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.6k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k59](/packages/open-dxp-opendxp)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)

PHPackages © 2026

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