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

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

respect/validation
==================

The most awesome validation engine ever created for PHP

3.1.1(2mo ago)5.9k37.4M—0.4%773[5 issues](https://github.com/Respect/Validation/issues)[3 PRs](https://github.com/Respect/Validation/pulls)20MITPHPPHP &gt;=8.5CI passing

Since Apr 8Pushed today194 watchersCompare

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

READMEChangelog (10)Dependencies (54)Versions (162)Used By (20)

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

[](#respectvalidation)

[![Build Status](https://camo.githubusercontent.com/24736c473130abe9c12d87892f1bc3fdd89afc41a4d81a43c638c3f2e04ca0b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f526573706563742f56616c69646174696f6e2f63692d636f64652e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/Respect/Validation/actions/workflows/ci-code.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 validation made simple: `v::numericVal()->positive()->between(1, 255)->isValid($input)`.
- Advanced [exception handling](docs/handling-exceptions.md).
- [More than 150](docs/validators.md) (fully tested) validators.

Learn More:

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

###  Health Score

87

—

ExcellentBetter than 100% of packages

Maintenance95

Actively maintained with recent releases

Popularity81

Widely adopted with strong download metrics

Community61

Healthy contributor diversity

Maturity99

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 59.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 ~32 days

Recently: every ~5 days

Total

157

Last Release

59d ago

Major Versions

0.9.6 → 1.0.32015-11-25

0.9.7 → 1.0.42016-02-26

0.9.8 → 1.0.52016-03-31

1.1.31 → 2.0.02020-04-04

2.4.12 → 3.0.02026-02-09

PHP version history (9 changes)0.7.0PHP &gt;=5.3.0

1.0.0PHP &gt;=5.4

2.0.0PHP &gt;=7.2

2.1.0PHP ^7.3 || ^8.0

2.2.4PHP ^7.4 || ^8.0 || ^8.1 || ^8.2

2.3.0-RCPHP ^8.0 || ^8.1 || ^8.2

2.3.0PHP ^8.1 || ^8.2

2.4.0PHP &gt;=8.1

3.0.0PHP &gt;=8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/202642?v=4)[Alexandre Gomes Gaigalas](/maintainers/alganet)[@alganet](https://github.com/alganet)

![](https://www.gravatar.com/avatar/aef3ebfba857504b29c8c54d3df12397cec9cc4b1a0890a799a7dc8d9c8c01ad?d=identicon)[Respect](/maintainers/Respect)

---

Top Contributors

[![henriquemoody](https://avatars.githubusercontent.com/u/154023?v=4)](https://github.com/henriquemoody "henriquemoody (1240 commits)")[![alganet](https://avatars.githubusercontent.com/u/202642?v=4)](https://github.com/alganet "alganet (386 commits)")[![nickl-](https://avatars.githubusercontent.com/u/1404606?v=4)](https://github.com/nickl- "nickl- (117 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (56 commits)")[![dcorrea777](https://avatars.githubusercontent.com/u/7196041?v=4)](https://github.com/dcorrea777 "dcorrea777 (45 commits)")[![TheRespectPanda](https://avatars.githubusercontent.com/u/50672519?v=4)](https://github.com/TheRespectPanda "TheRespectPanda (29 commits)")[![williamespindola](https://avatars.githubusercontent.com/u/794521?v=4)](https://github.com/williamespindola "williamespindola (26 commits)")[![batusa](https://avatars.githubusercontent.com/u/5388003?v=4)](https://github.com/batusa "batusa (26 commits)")[![jeanpimentel](https://avatars.githubusercontent.com/u/68348?v=4)](https://github.com/jeanpimentel "jeanpimentel (18 commits)")[![DaniloBenevides](https://avatars.githubusercontent.com/u/6895121?v=4)](https://github.com/DaniloBenevides "DaniloBenevides (16 commits)")[![kleberhs007](https://avatars.githubusercontent.com/u/1186353?v=4)](https://github.com/kleberhs007 "kleberhs007 (13 commits)")[![Reeywhaar](https://avatars.githubusercontent.com/u/884649?v=4)](https://github.com/Reeywhaar "Reeywhaar (12 commits)")[![jaysonsantos](https://avatars.githubusercontent.com/u/51510?v=4)](https://github.com/jaysonsantos "jaysonsantos (10 commits)")[![paulkarikari](https://avatars.githubusercontent.com/u/14082776?v=4)](https://github.com/paulkarikari "paulkarikari (7 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (6 commits)")[![wesleyvicthor](https://avatars.githubusercontent.com/u/605006?v=4)](https://github.com/wesleyvicthor "wesleyvicthor (6 commits)")[![caferrari](https://avatars.githubusercontent.com/u/89180?v=4)](https://github.com/caferrari "caferrari (5 commits)")[![fefas](https://avatars.githubusercontent.com/u/6557756?v=4)](https://github.com/fefas "fefas (5 commits)")[![gabrielrcouto](https://avatars.githubusercontent.com/u/2197005?v=4)](https://github.com/gabrielrcouto "gabrielrcouto (5 commits)")[![rogeriopradoj](https://avatars.githubusercontent.com/u/443391?v=4)](https://github.com/rogeriopradoj "rogeriopradoj (5 commits)")

---

Tags

componentsfluent-interfacephpstandalonevalidationvalidation-enginevalidatorvalidatorvalidationrespect

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[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

64736.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)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M30](/packages/wixel-gump)

PHPackages © 2026

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