PHPackages                             dymyw/yaf-sdk - 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. dymyw/yaf-sdk

ActiveLibrary

dymyw/yaf-sdk
=============

Yaf 扩展实践

16PHP

Since Dec 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dymyw/yaf-sdk)[ Packagist](https://packagist.org/packages/dymyw/yaf-sdk)[ RSS](/packages/dymyw-yaf-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yaf-sdk
-------

[](#yaf-sdk)

Yaf 扩展实践

### 封装

[](#封装)

- 数据返回
    - json
- 数据操作
    - catfan/medoo
- 参数
    - 获取
    - 验证 wixel/gump
- 错误
    - 异常
    - 日志
- 缓存
    - Redis
        - 规范 Redis Key 定义
- 公共方法
    - 生成唯一令牌
    - 获取客户端 IP

### 优化

[](#优化)

Action 获取参数

```
每次都需要先 getController() 才能获取

```

封装一个参数验证包

```
wixel/gump 中文包是自定义的
wixel/gump 的 contains 有问题，自定义了验证规则 in

```

rpc 请求封装

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/44b9b2249b56abe663532a1d3d0c04b7cc8a7f22f5f64d2a1405b4b8af467a21?d=identicon)[dymyw](/maintainers/dymyw)

---

Top Contributors

[![dymyw](https://avatars.githubusercontent.com/u/6252582?v=4)](https://github.com/dymyw "dymyw (36 commits)")

---

Tags

yafyaf-sdk

### Embed Badge

![Health badge](/badges/dymyw-yaf-sdk/health.svg)

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

PHPackages © 2026

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