PHPackages                             hornet/framework - 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. hornet/framework

ActiveLibrary[Framework](/categories/framework)

hornet/framework
================

The Hornet Framework.

v1.0.9(4y ago)10451↓50%MITPHP

Since Dec 9Pushed 4y ago8 watchersCompare

[ Source](https://github.com/gopeak/hornet-framework)[ Packagist](https://packagist.org/packages/hornet/framework)[ Docs](https://github.com/gopeak/hornet-framework)[ RSS](/packages/hornet-framework/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)DependenciesVersions (21)Used By (0)

 [Hornet-framework](https://github.com/gopeak/hornet-framework)

### 轻量级,基于PHP7的开发框架

[](#轻量级基于php7的开发框架-)

Hornet-framework目的是快速的轻松的构建一个高性能,可扩展,易于维护的Web应用程序或站点

 [![](https://camo.githubusercontent.com/5083b6efb9af95d8cd8963d2ec5d2da621018cca5e2a401ee0abcc43ea32522c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d686f6c742f63616464792e7376673f6c6162656c3d6c696e75782b6275696c64)](#) [![](https://camo.githubusercontent.com/48bab08e0a875e1765351d235776ff144bb13ba447990b8455398b40e243217a/68747470733a2f2f696d672e736869656c64732e696f2f6170707665796f722f63692f6d686f6c742f63616464792e7376673f6c6162656c3d77696e646f77732b6275696c64)](#)

 [下载](https://github.com/gopeak/hornet-framework/archive/master.zip) · [文档](https://github.com/gopeak/hornet-framework/wiki) · [Issues](https://github.com/gopeak/hornet-framework/issues)

Hornet-framework 具有高性能,轻量级,易于上手,功能完备的PHP LMVC 开发框架. LMVC分别是 Logic逻辑 Model模型 View视图 Ctrl控制器，与传统的MVC框架比多一层Logic层，目的是解决在复杂的应用系统时，逻辑代码混杂于Model或Ctrl之间的问题。

功能特性
----

[](#功能特性)

- **轻量级** 尽可能少的内存和cpu消耗,较少的调用堆栈
- **LMVC开发模式** 增强传统的MVC模式
- **多项目支持** 多个项目可以无缝的共用一套开发框架,开发框架代码不会引用或依赖任何项目的逻辑代码
- **自定义错误处理** 内置自定义处理,在测试或正式环境中还可启用错误邮件发送功能，实时收到系统的错误信息
- **Http API支持** 创建对外的Api接口十分简单
- **自动检验Api返回格式** 解决PHP开发Api接口返回数据类型和格式不稳定不可靠的问题
- **自定义API返回格式** 不同的项目可以有不同的api返回格式
- **动态加载配置文件**
- **多环境配置** 本地,开发,测试,正式环境有不同的配置文件夹，不同环境切换轻松简单
- **整合xhprof性能分析**
- **支持Swoole异步处理**
- **伪静态**
- **自定义Session处理**
- **项目环境检查**
- **易于测试** 整合了PHPUNIT框架并区别功能和单元测试
- **封装PDO抽象类**
- **自动回收资源**

LMVC开发模式
--------

[](#lmvc开发模式)

[![lvmc](https://camo.githubusercontent.com/efdc5d1e07c1ff172f25526b83d7277beffeeca0b4f4961288465ef763a7f19b/687474703a2f2f77782e3838387a622e636f6d2f6f746865722f6c766d632e6a7067)](https://camo.githubusercontent.com/efdc5d1e07c1ff172f25526b83d7277beffeeca0b4f4961288465ef763a7f19b/687474703a2f2f77782e3838387a622e636f6d2f6f746865722f6c766d632e6a7067)

待完成功能
-----

[](#待完成功能)

- **松耦合的设计**
- **连贯式的Sql语句查询构建器**
- **增加项目运维平台**
- **日志处理** ,系统日志,错误日志,逻辑日志不同处理,同时提供查询页面
- **安全性增强**
- **队列处理**

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~73 days

Recently: every ~112 days

Total

19

Last Release

1761d ago

Major Versions

v0.4.6 → v1.02018-12-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e9e87f5ee00dd814557e42a5bfd568e2ac487f29b3fb4014bc97d8a41f85448?d=identicon)[weichaoduo](/maintainers/weichaoduo)

---

Top Contributors

[![weichaoduo](https://avatars.githubusercontent.com/u/6365163?v=4)](https://github.com/weichaoduo "weichaoduo (69 commits)")[![cooldaniel](https://avatars.githubusercontent.com/u/13957713?v=4)](https://github.com/cooldaniel "cooldaniel (1 commits)")

---

Tags

frameworkhornet

### Embed Badge

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

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

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

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