NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #731 most downloaded on Packagist
The most awesome validation engine ever created for PHP
Latest stable
3.1.2
Last release 4 months ago
22 Jul 2026
Release timing varies
gaps range from 9 days to 7 months
Some releases are documented
notes for 21 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
155 releases · first in 2012
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
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
Fix grammatical errors in URL exception message
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix "Domain" rule by allowing domains that contain --
-- (#345)malkusch/bav (#885)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
The Respect development team announces the immediate availability of Respect\Validation 1.1.0.
The Respect development team announces the immediate availability of Respect\Validation 1.1.0.
This version is going to be supported until 2018-08-24.
This release adds 6 new rules, some improvements and some bug fixes.
Another version of this file is available with the source on the CHANGELOG.md file.
FibonacciIdentityCardImageLanguageCodePeselPhpLabelFix "Domain" rule by allowing domains that contain --
-- (#345)malkusch/bav (#885)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
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
All deprecated rules were removed:
The Respect development team announces the immediate availability of Respect\Validation 1.0.0.
This version is going to be supported until 2017-02-24.
This release adds 26 new rules, add some features (specially on exceptions), removes existing features, and fixes some bugs.
Another version of this file is available with the source on the CHANGELOG.md file.
We would like to thanks to the PHPSP community for all the support on the first TestFest Respect\Validation, that brings us 51 commits, 135 created integration tests, 12 improved unit tests, 2 bugs found, 4 new rules and 1 improved rule: you guys are awesome!
BoolVal;Bsn;CallableType;Countable;CurrencyCode;Extension;Factor;Finite;FloatType;Identical;Imei;Infinite;IntType;Iterable;KeyNested;KeySet;KeyValue;Mimetype;NotBlank;NotOptional;Optional;ResourceType;ScalarVal;Size;SubdivisionCode (252 countries);VideoUrl.The main new features are related to the exceptions:
getMessages() for nested exceptions
(NestedValidationException);Array to string;Exception to string;Traversable to string;Object conversion to string;But also there are a few improvements for some rules:
alpha-3 and numeric formats for CountryCode rule{{countryCode}} to the message of PostalCode exception ruleAbstractRelated (Attribute, Call and Key rules) defines names for
children rulesTrue and False rules (now TrueVal and FalseVal) had an awkward
behavior, now they use filter_var() with FILTER_VALIDATE_BOOLEAN to
validate their inputsThe main change of this version it that, despite what happens since version
0.6, now all rules are mandatory, so they do not accept an empty string
('') as valid value, and because of this you don't need to add NotEmpty
to every chain you want as mandatory. That change was only made after many
opened bugs reporting problems on this feature and since this feature cannot
work property with the code-base we have without an ugly hard-coded workaround.
Plus, there were lots of people complaining about what should be optional or
not, and many of them consider null as an optional value too.
However, you're still able work with optional values (that now are an empty
string '' and null) by using the Optional rule:
v::optional(v::intType())->validate(''); // true
v::optional(v::intType())->validate(null); // true
Also, there is the NotOptional rule that may be very useful for you when
dealing with non-optional values.
Some rule needed to be renamed to be compatible with PHP 7:
Bool to BoolTypeFalse to FalseValFloat to FloatValInt to IntValString to StringTypeTrue to TrueValThen, to keep consistency, other rules got renamed as well:
Arr to ArrayValNullValue to NullTypeObject to ObjectTypeThe old Arr rule, now ArrayVal, got splitted into 4 rules:
ArrayVal: validates if the input is an array or if the input can be used as
an array;ArrayType: validates whether the type of the input is array;Countable: validates if the input is countable, in other words, if you're
able to use count() function on it;Iterable: validates if the input is iterable, in other words, if you're
able to iterate over it with foreach language
construct.The Equals rule got splitted into 2 rules:
Equals: validates if the input is equal to some value, with not longer
supports the second argument on its constructor for identical checking;Identical: Validates if the input is identical to some value.Rules that validate intervals are now inclusive, by default:
BetweenMaxMinSome exception classes had the Abstract prefix, but they were not really
abstract, then they got renamed:
AbstractGroupedException to GroupedValidationExceptionAbstractNestedException to NestedValidationExceptionSome exception interfaces were not really necessary, then they got removed:
NestedValidationExceptionInterface:
On try/catch blocks you can simply use NestedValidationException insteadValidationExceptionInterface:
On try/catch blocks you can simply use ValidationException insteadAll deprecated rules were removed:
Consonants in favor of Consonant;Digits: in favor of DigitHexa in favor of Xdigits;Vowels: in favor of VowelAlso, all shortcuts were removed:
addOr() shortcutnot() shortcutNothing 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
### New rules - age() (#305 by @henriquemoody) ### Other changes - #274: Better place for documentations - #318: Simplified if/else conditions - #341:
age() (#305 by @henriquemoody)One column per quarter.