NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #193 most downloaded on Packagist
Provides tools to validate values
Last release 5 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 1 weeks
Rarely documented
notes for 1 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
794 releases · first in 2011
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.One column per quarter.
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
Nothing published for this version
Nothing published for this version
Deprecated the checkDNS and dnsMessage options of the Url constraint.
checkDNS and dnsMessage options of the Url constraint.values option to the Expression constraintLocale constraint without setting true at "canonicalize" option, which will be the default value in 5.0Nothing 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
Your coding agent can read these notes before it upgrades. Set up the MCP server →