PHPackages                             yesccx/think-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. yesccx/think-validate

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

yesccx/think-validate
=====================

use think validate engine for hyperf.

v2.0.4(6y ago)043Apache-2.0PHPPHP &gt;=7.2

Since Nov 17Pushed 6y agoCompare

[ Source](https://github.com/yesccx/think-validate)[ Packagist](https://packagist.org/packages/yesccx/think-validate)[ RSS](/packages/yesccx-think-validate/feed)WikiDiscussions 2.0 Synced 6d ago

READMEChangelog (1)Dependencies (2)Versions (10)Used By (0)

think-validate
==============

[](#think-validate)

精简 [think-validate2.0](https://github.com/top-think/think-validate)，去除了`topthink/think-container`依赖，并做了简单的适配Hyperf

> 暂不支持协程，只能通过new或者make验证器类

开始使用
----

[](#开始使用)

#### 1、安装依赖

[](#1安装依赖)

```
composer require yesccx/think-validate:2.0.3
```

#### 2、初始化配置

[](#2初始化配置)

```
php bin/hyperf.php think-validate:publish --config
```

#### 3、相关配置

[](#3相关配置)

```
app/config/autoload/think-validate.php

return [
    // 验证器异常类，如果为空则表示不抛出异常（这时需要获取错误信息进行处理）
    'validate_exception' => AppException::class,
];
```

#### 4、使用

[](#4使用)

```
class UserValidate extends Yesccx\ThinkValidate\Validate {
    ...
}

$uv = new UserValidate 或 $uv = UserValidate::make();
$uv->xxxx
```

更多用法可以参考6.0完全开发手册的[验证](https://www.kancloud.cn/manual/thinkphp6_0/1037623)章节

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% 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 ~108 days

Recently: every ~85 days

Total

9

Last Release

2236d ago

Major Versions

v1.0.2 → v2.0.02019-04-29

PHP version history (3 changes)1.0PHP &gt;=5.6.0

v2.0.1PHP &gt;=7.1.0

v2.0.3PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/01e0254020f7dd9bfb9995161a66dfefd7ef247a6478669bb417087ee19c4f0d?d=identicon)[yesccx](/maintainers/yesccx)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (11 commits)")[![yesccx](https://avatars.githubusercontent.com/u/22075277?v=4)](https://github.com/yesccx "yesccx (4 commits)")[![evalor](https://avatars.githubusercontent.com/u/26944445?v=4)](https://github.com/evalor "evalor (1 commits)")

---

Tags

phphyperfthink-validate

### Embed Badge

![Health badge](/badges/yesccx-think-validate/health.svg)

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

###  Alternatives

[hyperf/hyperf-skeleton

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

301187.4k](/packages/hyperf-hyperf-skeleton)

PHPackages © 2026

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