PHPackages                             t2cn/validation - 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. t2cn/validation

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

t2cn/validation
===============

The most awesome validation engine ever created for PHP. Respect/Validation 汉化版本

v2.3.0(1y ago)010MITPHPPHP ^8.2

Since Jan 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/t2cn/validation)[ Packagist](https://packagist.org/packages/t2cn/validation)[ Docs](https://respect.github.io/Validation/)[ RSS](/packages/t2cn-validation/feed)WikiDiscussions main Synced 1mo ago

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

[Respect\\Validation 验证器](https://github.com/Respect/Validation) 汉化版
====================================================================

[](#respectvalidation-验证器-汉化版)

Respect\\Validation
===================

[](#respectvalidation)

[![Build Status](https://camo.githubusercontent.com/4bc8fd448dcaa78368eff9d36aa20bb9bd34eb10e26a5aab08983dbaca1e4f1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f526573706563742f56616c69646174696f6e2f636f6e74696e756f75732d696e746567726174696f6e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/Respect/Validation/actions/workflows/continuous-integration.yml)[![Code Coverage](https://camo.githubusercontent.com/09b80968cf391300223e15c5bf178a1d3e10d14d4265a2041b4b55976b893c8c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f526573706563742f56616c69646174696f6e3f7374796c653d666c61742d737175617265)](https://codecov.io/gh/Respect/Validation)[![Latest Stable Version](https://camo.githubusercontent.com/b23fa9eca9cd910a4c9f6e3b00e42f4315237aa5e298d771d02474c26908a3f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726573706563742f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/validation)[![Total Downloads](https://camo.githubusercontent.com/d32ea1e5731519eeffb8e81426a3572396d8fa5ea977230ffccd3201a0df01cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726573706563742f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/validation)[![License](https://camo.githubusercontent.com/153b68f97e1a6068be2421d93143842ee87f9eb97fbe5f165ceecec683c18580/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726573706563742f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/respect/validation)

The most awesome validation engine ever created for PHP.

- Complex rules made simple: `v::numericVal()->positive()->between(1, 255)->validate($input)`.
- [Granularity control](docs/feature-guide.md#validation-methods) for advanced reporting.
- [More than 150](docs/list-of-rules.md) (fully tested) validation rules.
- [A concrete API](docs/concrete-api.md) for non fluent usage.

Learn More:

- [Documentation](https://respect-validation.readthedocs.io)
- [How to contribute](CONTRIBUTING.md)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

480d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45b736c506e6fb8929b80b62160c3847f46d8ee55156a020d5626439855f4a24?d=identicon)[t2cn](/maintainers/t2cn)

---

Tags

validatorvalidationrespect

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/t2cn-validation/health.svg)

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

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M416](/packages/giggsey-libphonenumber-for-php)[opis/json-schema

Json Schema Validator for PHP

64236.9M186](/packages/opis-json-schema)[vlucas/valitron

Simple, elegant, stand-alone validation library with NO dependencies

1.6k4.4M128](/packages/vlucas-valitron)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)

PHPackages © 2026

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