PHPackages                             asiasea-ai/hf3 - 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. asiasea-ai/hf3

ActiveLibrary[Framework](/categories/framework)

asiasea-ai/hf3
==============

hf3核心依赖

v0.9.0(4w ago)032MITPHPPHP &gt;=8.5CI failing

Since Jun 4Pushed 4w agoCompare

[ Source](https://github.com/asiasea-ai/hf3)[ Packagist](https://packagist.org/packages/asiasea-ai/hf3)[ Docs](https://github.com/asiasea-ai/hf3)[ RSS](/packages/asiasea-ai-hf3/feed)WikiDiscussions dev Synced 1w ago

READMEChangelog (1)Dependencies (76)Versions (15)Used By (0)

hf3
===

[](#hf3)

> 基于 Hyperf 3.2 / Swoole 协程的微服务基础库。

[![Latest Version](https://camo.githubusercontent.com/ba3a9b8725baa38e5e19ecc608dd7410937b2d77aefa1897af261efd06759d7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617369617365612d61692f6866332e737667)](https://packagist.org/packages/asiasea-ai/hf3)[![License](https://camo.githubusercontent.com/012c1c60ad460442a656acbd37a1eabfbbd8e9939f3b8eabbba01f4e5ee79d61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f617369617365612d61692f6866332e737667)](LICENSE)

`Hf3\` 命名空间下的框架级基础设施，为基于 Hyperf 3.2（Swoole 协程，PHP 8.5+）的微服务提供统一的分层骨架、鉴权、限流、异常体系与文档生成能力。

环境要求
----

[](#环境要求)

- PHP &gt;= 8.5
- Swoole / Hyperf 3.2 运行时

安装
--

[](#安装)

```
composer require asiasea-ai/hf3
```

核心能力
----

[](#核心能力)

模块说明`Spl` / `Dao` / `Service` / `Gateway` / `Model``Controller → Gateway → Service → Dao → Model` 分层基类，DTO/VO 基类（`SplDto` / `SplVo`）`Middleware`核心中间件：`Hf3Core`（响应信封包装）、`Auth`（JWT 鉴权）、`RateLimit`（限流）、`Trace`（链路追踪）`Identity`JWT 签发与校验（HS256）`Throwable`统一异常体系、错误码映射、PSR 日志桥接`Db`表结构内省（物理表名 → 字段类型字典）、SQL 构建工具`Doc`路由收集与 OpenAPI 文档自动生成`Policy`基于 Casbin 的访问控制网关`Whitelist`路由白名单与 CIDR 匹配`Curl`协程 HTTP / RPC 客户端`Crontab` / `Process`定时任务与自定义进程基类`Helper`协程、环境变量、Redis、身份等全局辅助函数响应信封
----

[](#响应信封)

由 `Hf3Core` 中间件自动包装：

```
{ "code": 100000, "result": { "data": {} }, "msg": "执行成功", "trace_id": "...", "process_time": "..." }
```

许可协议
----

[](#许可协议)

[MIT](LICENSE)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

14

Last Release

29d ago

PHP version history (2 changes)v0.1.0PHP ^8.5

v0.5.0PHP &gt;=8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a940af764cfd0ac2e5322764be7194849f65944a59857e4cdd0792ce59b9e50?d=identicon)[asiasea-ai](/maintainers/asiasea-ai)

---

Tags

phpframeworkswoolecoroutinehyperfMicroservice

### Embed Badge

![Health badge](/badges/asiasea-ai-hf3/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.5k](/packages/laravel-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.2k18.1k](/packages/prestashop-prestashop)[oro/platform

Business Application Platform (BAP)

645143.5k116](/packages/oro-platform)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k46](/packages/civicrm-civicrm-core)

PHPackages © 2026

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