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

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

chebur/validator-constraints
============================

Some symfony validator constraints

1.4.1(3mo ago)112.0k1MITPHPPHP ^8.0

Since Nov 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/vchebotarev/validator-constraints)[ Packagist](https://packagist.org/packages/chebur/validator-constraints)[ Docs](https://github.com/vchebotarev)[ RSS](/packages/chebur-validator-constraints/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Additional Symfony Validators
=============================

[](#additional-symfony-validators)

[![PHP requirements](https://camo.githubusercontent.com/b33213ed26936f344fe9c2d554c4c818072dae6f82214292a10ae9cb24ed7b5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368656275722f76616c696461746f722d636f6e73747261696e74732e737667)](https://packagist.org/packages/chebur/validator-constraints "PHP requirements")[![Latest version](https://camo.githubusercontent.com/0e2f1af760ddbf13c4271b350d055c632dbf6d06d245513bcb46c7f9343cb07e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368656275722f76616c696461746f722d636f6e73747261696e74732e737667)](https://packagist.org/packages/chebur/validator-constraints "Last version")[![Total downloads](https://camo.githubusercontent.com/e56ccc0da157413fdc02ec8f7b7fe165ae27c6c8848d14e4df608ecb5f81dc15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368656275722f76616c696461746f722d636f6e73747261696e74732e737667)](https://packagist.org/packages/chebur/validator-constraints "Total downloads")[![License](https://camo.githubusercontent.com/6d16b7679311e022a798577bb70fc1e2fea09deb427b26c70081c4620659477f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6368656275722f76616c696461746f722d636f6e73747261696e74732e737667)](https://packagist.org/packages/chebur/validator-constraints "License")

Installation
------------

[](#installation)

```
composer require chebur/validator-constraints
```

List of constraints
-------------------

[](#list-of-constraints)

### OrComposite

[](#orcomposite)

Validation will be passed if at least one child constraint validation passed
(Since Symfony 5.1 there is `AtLeastOneOf` constraint)

### KeyExists

[](#keyexists)

Looks into the value if the passed key exists in it.

### AbstractConstraintList

[](#abstractconstraintlist)

Abstract composite constraint. Helpful to create any constraint combinations.
(Since Symfony 5.1 there is `Compound` constraint)

### BreakOnFailure

[](#breakonfailure)

Composite constraint. Validation by child constraints will be stopped after first error.
(Since Symfony 5.1 there is `Sequentially` constraint)

### AllKey

[](#allkey)

Composite constraint. Similar to `All` constraint, but this one validates array keys - not values.

### AllUnique

[](#allunique)

Checks if passed array contains only unique values

### IntInString

[](#intinstring)

Checks if passed string contains only valid positive integer not more than `PHP_INT_MAX`

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~376 days

Recently: every ~512 days

Total

7

Last Release

97d ago

Major Versions

0.0.1 → 1.0.02020-05-29

PHP version history (5 changes)0.0.1PHP ^7.1.3

1.1.0PHP ^7.2.5

1.2.0PHP ^7.4 || ^8.0

1.4.0PHP ^8.2

1.4.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bf9046069b7d485fc6a2df5411cd2089a6154a831ea480d96261e28aed35983?d=identicon)[vchebotarev](/maintainers/vchebotarev)

---

Top Contributors

[![vchebotarev](https://avatars.githubusercontent.com/u/2445241?v=4)](https://github.com/vchebotarev "vchebotarev (13 commits)")

---

Tags

symfonyvalidatorconstraint

### Embed Badge

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

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

###  Alternatives

[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[rollerworks/password-strength-validator

Password-strength validator for Symfony

1455.7M5](/packages/rollerworks-password-strength-validator)[sllh/iso-codes-validator

Symfony validator wrapper of ronanguilloux/isocodes

37299.8k2](/packages/sllh-iso-codes-validator)

PHPackages © 2026

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