PHPackages                             arlin/hyperf-validate - 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. arlin/hyperf-validate

ActiveLibrary

arlin/hyperf-validate
=====================

hyperf validate

v1.0(5y ago)010Apache-2.0PHPPHP &gt;=7.2

Since Jan 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/arlin-lin/hyperf-validate)[ Packagist](https://packagist.org/packages/arlin/hyperf-validate)[ RSS](/packages/arlin-hyperf-validate/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

hyperf-validate
===============

[](#hyperf-validate)

通过注解、切面验证表单

安装方法 composer require arlin/hyperf-validate

注解: @RequestValidation

例如：

```
/**
 * validate 验证规则类，默认取验证器为当前控制器类文件名的验证器文件
 * scene  验证场景
 * filter true过滤掉规则外无用参数
 * @RequestValidation(validate="",scene="index",filter=true)
 * @return array
 */

public function index()
{
    //获取验证后数据
    /** @var IndexControllerValidation $param */
    $param = $this->request->getParsedBody();

    return [
        'username' => $param->username,
        'password' => $param->password
    ];
}

```

具体可参考

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1958d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55835276?v=4)[arlin](/maintainers/arlin-lin)[@arlin-lin](https://github.com/arlin-lin)

---

Top Contributors

[![arlin-lin](https://avatars.githubusercontent.com/u/55835276?v=4)](https://github.com/arlin-lin "arlin-lin (7 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/arlin-hyperf-validate/health.svg)

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

###  Alternatives

[mineadmin/mineadmin

Quickly build a background management system for web applications

1.2k2.0k](/packages/mineadmin-mineadmin)[hyperf/swow-skeleton

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

514.5k](/packages/hyperf-swow-skeleton)[hyperf/odin

425.9k](/packages/hyperf-odin)[mzh/hyperf-validate

hyperf-validate 支持request 和方法场景验证，兼容tp5写法 支持控制器注解验证、方法注解验证

202.9k1](/packages/mzh-hyperf-validate)[hyperf-plus/ui

hyperf UI 插件，用php代码写amis组件神器

197.6k2](/packages/hyperf-plus-ui)

PHPackages © 2026

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