NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2815 most downloaded on Packagist
Flexible and highly usable validation library with no dependencies.
Latest stable
v2.3.6
Last release 11 months ago
09 Dec 2025
Ships unpredictably
gaps range from 2 weeks to 3.9 years
Most releases are documented
notes for 23 of 26 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
28 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
@stephenwaite: Make Validator::copyContext parameter nullable type explicit
@bradymiller: php 8.2 fix - date was being flagged as not valid even if valid
@vova07: Fix EachRule bug with non-array items
Your coding agent can read these notes before it upgrades. Set up the MCP server →
@vova07 fixed an issue with the traverse method using keys with the array dot notation
Consider the break chain only in case the validation fail (#177), thank you @vova07
Some documentation issues (thanks @creocoder)
Fixed in this release:
Added a hash validation thanks to @camcima
Several code improvements by @localheinz
->string() validation rule is now available to check if a value is a string thanks to @localheinz->float() validation rule is now available to check if a value is a float thanks to @localheinz->phone() or ->creditCard() rules, the corresponding libraries must be installed manually.In v2.1.0, two dependencies were introduced. One of witch requires the PHP extension bcmath. This lead to a complaining composer if you wanted to inst
In v2.1.0, two dependencies were introduced. One of witch requires the PHP extension bcmath. This lead to a complaining composer if you wanted to install v2.1.0 and do not have the PHP extension available.
Thanks to @jschreuder this came to our attention and we implemented the fix he suggested: Making the dependencies optional. This involves, that if you installed v2.1.0 already, and you are using the Phone or CreditCard rule, you now have to install the dependencies manually that are suggested by composer. If you do not use the Phone or CreditCard rule you don't need to take any action.
We are sorry for the inconvenience this might have caused, we did our best to resolve this as good as we were able to.
A creditcard validator has been added
What changed in this version?
Thank you @camcima for these aditions!
## In this release: - Added a JSON validator - Added support for empty arrays - Fixed a bug in UUID detection
Added support for validating nested repeating arrays;
In this version:
The second alpha release in preparation of version 2 of the validator. In this release:
The second alpha release in preparation of version 2 of the validator. In this release:
Note that this is an alpha release of version 2. For version two we have some other features planned, that might break backwards compatibility over the v2-alpa's up to version 2.
The first alpha release in preparation of version 2 of the validator. In this release:
The first alpha release in preparation of version 2 of the validator. In this release:
isValid, isNotValid and getMessages.LessThan and GreaterThan ruleNote that this is an alpha release of version 2. For version two we have some other features planned, that might break backwards compatibility over the v2-alpa's up to version 2.
@RobQuistNL: Fix issue in reuseable validator on NotEmpty and Required
Added a feature to be able to white list schemes for the URL;
In this release:
For version 1, an exception is thrown when no validation is done yet upon calling getMessages.
For version 1, an exception is thrown when no validation is done yet upon calling getMessages.
Numeric validator, which accepts both integers as floats.
In this release, we've added:
fixed a bug that supported incorrect dates.
In this version, we have:
Many thanks to @NickBelhomme for spotting and fixing the bug!
Fixed a bug where a notice was shown when no validation rules had been defined.
Fixed a bug where a notice was shown when no validation rules had been defined.
@localheinz introduced PSR-4 to clean up our directory structure.
@localheinz introduced PSR-4 to clean up our directory structure.
Introduced a new validation rule for validating boolean values;
In this version we have:
ValidationResult;Fixed a bug where an optional null value was marked as not set
Fixed a bug where an optional null value was marked as not set
A bug is fixed where false was not considered as 'not empty' value.
A bug is fixed where false was not considered as 'not empty' value.
Improved the default validation messages
In this version we have:
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.