PHPackages                             phpolar/validators - 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. phpolar/validators

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

phpolar/validators
==================

A set of property validators

1.4.1(6mo ago)18943MITPHPPHP &gt;=8.3CI passing

Since Mar 31Pushed 6mo agoCompare

[ Source](https://github.com/phpolar/validators)[ Packagist](https://packagist.org/packages/phpolar/validators)[ RSS](/packages/phpolar-validators/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (7)Versions (18)Used By (3)

 [![Phpolar Logo](phpolar.svg)](https://github.com/phpolar)

Validators
==========

[](#validators)

A set of property validators.

[![Version](https://camo.githubusercontent.com/39600cde975604462f143fa8d67b9853e2ec8a86867d4c58e59dad1adb7216a9/68747470733a2f2f706f7365722e707567782e6f72672f7068706f6c61722f76616c696461746f72732f76657273696f6e)](https://packagist.org/packages/phpolar/validators) [![PHP Version Require](https://camo.githubusercontent.com/94c25fad7fc338b6cb1c253c8bdbd4ed202f47041e647e93600dee6bb6d5b22a/68747470733a2f2f706f7365722e707567782e6f72672f7068706f6c61722f76616c696461746f72732f726571756972652f706870)](https://packagist.org/packages/phpolar/validators) [![Total Downloads](https://camo.githubusercontent.com/5d8e5a8d200c219a81f8ab83025f2051670080058fc0ae671cb24b46f6e105e8/68747470733a2f2f706f7365722e707567782e6f72672f7068706f6c61722f76616c696461746f72732f646f776e6c6f616473)](https://packagist.org/packages/phpolar/validators) [![Weekly Check](https://github.com/phpolar/validators/actions/workflows/weekly.yml/badge.svg)](https://github.com/phpolar/validators/actions/workflows/weekly.yml) [![Source code only changes](https://github.com/phpolar/validators/actions/workflows/source-changes.yml/badge.svg)](https://github.com/phpolar/validators/actions/workflows/source-changes.yml)

Usage
-----

[](#usage)

```
class Something
{
    #[Required]
    #[Pattern("/^[A-Za-z]$/")]
    public string $name;

    #[Max(12)]
    #[Min(2)]
    public int $age;
}

$validationAttr->isValid();
```

[API Documentation](https://phpolar.github.io/validators/)
----------------------------------------------------------

[](#api-documentation)

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance69

Regular maintenance activity

Popularity18

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

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

Recently: every ~60 days

Total

14

Last Release

180d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.1

1.2.4PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/122765967?v=4)[phpolar](/maintainers/phpolar)[@phpolar](https://github.com/phpolar)

![](https://avatars.githubusercontent.com/u/40972462?v=4)[Eric Fortmeyer](/maintainers/ericfortmeyer)[@ericfortmeyer](https://github.com/ericfortmeyer)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (118 commits)")[![ericfortmeyer](https://avatars.githubusercontent.com/u/40972462?v=4)](https://github.com/ericfortmeyer "ericfortmeyer (76 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (71 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpolar-validators/health.svg)

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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