NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #206 most downloaded on Packagist
Provides tools to validate values
Latest stable
v8.1.11
Last release 4 days ago
13 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Rarely documented
notes for 1 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
807 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
using anything else than a string as the code of a ConstraintViolation is deprecated, a string type-hint will be added to the constructor of the Const…
$classValidatorRegexp value in PropertyInfoLoader::__construct will not enable auto-mapping for all classes anymore, use '{.*}' instead.EnableAutoMapping and DisableAutoMapping constraints to enable or disable auto mapping for class or a propertystring as the code of a ConstraintViolation is deprecated, a string type-hint will
be added to the constructor of the ConstraintViolation class and to the ConstraintViolationBuilder::setCode()
method in 5.0ExpressionLanguage instance as the second argument of ExpressionValidator::__construct(). Pass it as the first argument instead.compared_value_path parameter in violations when using any
comparison constraint with the propertyPath option.TypeValidatorallowEmptyString option to the Length constraint to allow rejecting empty strings when min is set, by setting it to false.minPropertyPath and maxPropertyPath options
to Range constraint in order to get the value to compare
from an array or objectmin_limit_path and max_limit_path parameters in violations when using
Range constraint with respectively the minPropertyPath and
maxPropertyPath optionsnotInRangeMessage option to the Range constraint that will
be used in the violation builder when both min and max are not nullConstraintValidatorTestCase::setUp() and ConstraintValidatorTestCase::tearDown() without the void return-type is deprecated.Symfony\Component\Validator\Mapping\Cache\CacheInterface in favor of PSR-6.ValidatorBuilder::setMetadataCache, use ValidatorBuilder::setMappingCache instead.ValidatorDataCollector class as @final.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
added NotCompromisedPassword constraint
Timezone constraintNotCompromisedPassword constraintiban and ibanPropertyPath to Bic constraintCardSchemeValidatorallowNull to NotBlank constraintJson constraintUnique constraintnormalizer option to the string constraints and to the NotBlank constraintPositive constraintPositiveOrZero constraintNegative constraintNegativeOrZero constraintNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
deprecated ValidatorBuilderInterface
UnexpectedValueException that can be thrown by constraint validators, these exceptions are caught by
the validator and are converted into constraint violationsDivisibleBy constraintsymfony/translation by using Symfony\Contracts\Translation\TranslatorInterfaceValidatorBuilderInterfaceValidatorBuilder::setTranslator() finalformat the default option in DateTime constraint\DateTimeInterface in DateTimeValidator, DateValidator and TimeValidator.Bic, Country, Currency, Language and Locale constraints without symfony/intlEmail constraint without egulias/email-validatorExpression constraint without symfony/expression-languageNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.