PHPackages                             spiral/validator - 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. spiral/validator

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

spiral/validator
================

Nested validation, Checkers, Conditional Validation

1.7.0(5mo ago)41.5M↓35%3[1 issues](https://github.com/spiral/validator/issues)5MITPHPPHP &gt;=8.1CI passing

Since May 26Pushed 5mo ago4 watchersCompare

[ Source](https://github.com/spiral/validator)[ Packagist](https://packagist.org/packages/spiral/validator)[ Docs](https://spiral.dev)[ GitHub Sponsors](https://github.com/sponsors/spiral)[ RSS](/packages/spiral-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (18)Used By (5)

Spiral Validator
================

[](#spiral-validator)

[![PHP Version Require](https://camo.githubusercontent.com/6c3d51e4985208f183397a31533fa940f4ffc047b44b6b05093f7f3202b2af53/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f76616c696461746f722f726571756972652f706870)](https://packagist.org/packages/spiral/validator)[![Latest Stable Version](https://camo.githubusercontent.com/6cc71ab960210843e3f375e2234913a0e27ad482b311983b03c9efd5eff52ef9/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f76616c696461746f722f762f737461626c65)](https://packagist.org/packages/spiral/validator)[![phpunit](https://github.com/spiral/validator/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/validator/actions)[![psalm](https://github.com/spiral/validator/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/spiral/validator/actions)[![Codecov](https://camo.githubusercontent.com/6ffe5e1328c9a7bad83c598619825a872e809e19aee16de3544fac231f17d8af/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f76616c696461746f722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/validator)[![Total Downloads](https://camo.githubusercontent.com/40d9b7fcb341f1adcbb25c0610cdf744879a567ba17a20ace57f35a4cc208845/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f76616c696461746f722f646f776e6c6f616473)](https://packagist.org/packages/spiral/validator)[![type-coverage](https://camo.githubusercontent.com/0ecc0063337e21331798c4071785f3c1125d7a492d6a2803c472af0c1057718c/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f76616c696461746f722f636f7665726167652e737667)](https://shepherd.dev/github/spiral/validator)[![psalm-level](https://camo.githubusercontent.com/d13794c959325da676625ab46905b0c747ddad7389b97cd4da4dd90700c488c1/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f76616c696461746f722f6c6576656c2e737667)](https://shepherd.dev/github/spiral/validator)

**[Documentation](https://spiral.dev/docs/validation-spiral)** | [Framework Bundle](https://github.com/spiral/framework)

License
-------

[](#license)

MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance68

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~81 days

Recently: every ~161 days

Total

17

Last Release

153d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

![](https://avatars.githubusercontent.com/u/773481?v=4)[Pavel Buchnev](/maintainers/butschster)[@butschster](https://github.com/butschster)

---

Top Contributors

[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (14 commits)")[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (14 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (11 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (10 commits)")[![S1lentAvenger](https://avatars.githubusercontent.com/u/22122511?v=4)](https://github.com/S1lentAvenger "S1lentAvenger (1 commits)")

---

Tags

packagephpphp81spiralspiral-frameworkvalidation

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spiral-validator/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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