PHPackages                             darkwebdesign/symfony-addon-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. darkwebdesign/symfony-addon-constraints

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

darkwebdesign/symfony-addon-constraints
=======================================

Symfony Add-on Constraints

v7.4.0(3mo ago)0251MITPHPPHP ^8.2CI passing

Since Feb 11Pushed 3mo agoCompare

[ Source](https://github.com/darkwebdesign/symfony-addon-constraints)[ Packagist](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)[ Docs](https://www.darkwebdesign.nl/)[ RSS](/packages/darkwebdesign-symfony-addon-constraints/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (10)Dependencies (9)Versions (99)Used By (0)

Symfony Add-on Constraints
==========================

[](#symfony-add-on-constraints)

[![Latest Stable Version](https://camo.githubusercontent.com/7a6175916391eb92d99fc9a6f68283932420c8109b9e346b79d9da2c3d856efa/68747470733a2f2f706f7365722e707567782e6f72672f6461726b77656264657369676e2f73796d666f6e792d6164646f6e2d636f6e73747261696e74732f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)[![Total Downloads](https://camo.githubusercontent.com/d4587a89b9f4d3564e1ccc9481380e884414cf68eca1cd3f090311989c3de25b/68747470733a2f2f706f7365722e707567782e6f72672f6461726b77656264657369676e2f73796d666f6e792d6164646f6e2d636f6e73747261696e74732f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)[![License](https://camo.githubusercontent.com/cf613b91f24739f8121dc9ba042db992ad6dbcb393ae3d52fe3df8edf5586c1b/68747470733a2f2f706f7365722e707567782e6f72672f6461726b77656264657369676e2f73796d666f6e792d6164646f6e2d636f6e73747261696e74732f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)

[![Build Status](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=7.4)](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml)[![Coverage Status](https://camo.githubusercontent.com/b0b58cc744976a56cec13202769f06ce3e2b42f79baa7a606ff0c9cfc413de9d/68747470733a2f2f636f6465636f762e696f2f67682f6461726b77656264657369676e2f73796d666f6e792d6164646f6e2d636f6e73747261696e74732f6272616e63682f372e342f67726170682f62616467652e737667)](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints)[![PHP Version](https://camo.githubusercontent.com/6f88d3f824988ab28fc1456d7f48d644981f9fc56265dce4dda51514d0fe65e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737374242332e737667)](https://php.net/)[![Symfony Version](https://camo.githubusercontent.com/6939a146cec7422703b80e6adb2a1ad63a77b894be69178a48626f2d3d582fc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d372e342d3933433734422e737667)](https://symfony.com/)

Symfony Add-on Constraints is a collection of extra Symfony validation constraints that you can use in your Symfony applications.

Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.4).

Features
--------

[](#features)

### Validation Constraints

[](#validation-constraints)

- Bsn, validates that a value is a valid Dutch social security number (BSN).
- Collection, validates that every item in a collection validates against one or more constraints.
- Json, validates that a value is valid JSON.

License
-------

[](#license)

Symfony Add-on Constraints is licensed under the MIT License - see the `LICENSE` file for details.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

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

Recently: every ~102 days

Total

98

Last Release

90d ago

Major Versions

v2.8.4 → v3.0.12018-04-06

v3.4.0 → v4.0.02020-04-28

4.4.x-dev → 5.0.x-dev2021-05-24

5.4.x-dev → 6.0.x-dev2024-05-30

v6.4.0 → v7.0.02024-05-31

PHP version history (10 changes)2.3.0PHP ^5.3.3

2.7.0PHP ^5.3.9

2.3.2PHP &gt;=5.3.3

2.7.2PHP &gt;=5.3.9

v3.0.1PHP &gt;=5.5.9

v4.0.0PHP &gt;=7.1.3

5.0.x-devPHP &gt;=7.2.5

6.0.x-devPHP ^8.0

v6.1.0PHP ^8.1

v7.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/87e5bac63e50ade62a7081144d4cb5d6bbaa2f2a4571e1ccb78ee0e6e7e4a2b5?d=identicon)[raymondschouten](/maintainers/raymondschouten)

---

Top Contributors

[![raymondschouten](https://avatars.githubusercontent.com/u/21282689?v=4)](https://github.com/raymondschouten "raymondschouten (152 commits)")

---

Tags

constraintsphpsymfonysymfonyvalidationconstraints

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/darkwebdesign-symfony-addon-constraints/health.svg)

```
[![Health](https://phpackages.com/badges/darkwebdesign-symfony-addon-constraints/health.svg)](https://phpackages.com/packages/darkwebdesign-symfony-addon-constraints)
```

###  Alternatives

[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[fp/jsformvalidator-bundle

Javascript validation for sf\[2|3|4\] forms.

132418.8k1](/packages/fp-jsformvalidator-bundle)[apy/jsfv-bundle

Symfony2 Javascript Form Validation Bundle with localisation support

92770.5k](/packages/apy-jsfv-bundle)[j-ben87/parsley-bundle

Convert Symfony constraints into data-attributes for client-side validation with Parsley.

1432.7k](/packages/j-ben87-parsley-bundle)

PHPackages © 2026

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