particle/validator
Flexible and highly usable validation library with no dependencies.
v2.3.6
2.4M downloads/mo
#2204 most downloaded on Packagist
particle-php/Validator
What this package is like to depend on
Last release 8 months ago
09 Dec 2025
Ships unpredictably
gaps range from 2 weeks to 3.9 years
Some releases are documented
notes for 10 of 26 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
28 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
28 releases · Mar 2015 to Dec 2025Releases
latest 28-
v2.3.609 Dec 2025Release notes
Open source →- @stephenwaite: Make Validator::copyContext parameter nullable type explicit (#199)
-
v2.3.512 Dec 2022Release notes
Open source →Bugfix
- @bradymiller: php 8.2 fix - date was being flagged as not valid even if valid (#197)
-
v2.3.407 Jan 2019Release notes
Open source →Bugfixes:
- @vova07: Fix EachRule bug with non-array items (#187)
- @RobQuistNL: Fix issue with rusing validator rule NotEmpty and IsRequired (#192)
-
v2.3.312 Sep 2018Release notes
Open source →In this patch release
- @vova07 fixed an issue with the traverse method using keys with the array dot notation
-
v2.3.230 Jan 2018 -
v2.3.118 Jan 2018Release notes
Open source →Patch version
Fixed in this release:
- Some documentation issues (thanks @creocoder)
- Type validators now break the validation chain so there wont be any typecasting issues in the validator itself (thanks @vova07)
-
v2.3.021 Jul 2017Release notes
Open source →In this release
- Added a hash validation thanks to @camcima
- Improved UUID validation to support all different versions thanks to @jschreuder
-
v2.2.005 Aug 2016Release notes
Open source →In this release
- Several code improvements by @localheinz
- The integer rule has now the option to do a strict integer check thanks to @rcatlin
- a
->string()validation rule is now available to check if a value is a string thanks to @localheinz - a
->float()validation rule is now available to check if a value is a float thanks to @localheinz - The dependencies of the project are now removed, and are suggested via composer instead. If you want to use the
->phone()or->creditCard()rules, the corresponding libraries must be installed manually.
-
v2.1.105 Aug 2016Release notes
Open source →Patch release
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 installv2.1.0and 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.0already, and you are using thePhoneorCreditCardrule, you now have to install the dependencies manually that are suggested by composer. If you do not use thePhoneorCreditCardrule 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.
-
v2.1.017 Mar 2016Nothing published for this version
-
v2.0.114 Mar 2016Nothing published for this version
-
v2.0.030 Oct 2015Nothing published for this version
-
v2.0.0-alpha.223 Sep 2015 pre-releaseNothing published for this version
-
2.0.0-alpha.126 Aug 2015 pre-releaseNothing published for this version
-
v1.0.707 Jan 2019Release notes
Open source →What
- @RobQuistNL: Fix issue in reuseable validator on NotEmpty and Required (#191)
-
v1.0.630 Oct 2015Nothing published for this version
-
v1.0.530 Jun 2015Nothing published for this version
-
v1.0.419 Jun 2015Nothing published for this version
-
v1.0.319 Jun 2015Nothing published for this version
-
v1.0.204 Jun 2015Nothing published for this version
-
v1.0.101 Jun 2015Nothing published for this version
-
v1.0.031 May 2015Nothing published for this version
-
v0.4.222 May 2015Nothing published for this version
-
v0.4.120 May 2015Nothing published for this version
-
v0.4.020 May 2015Nothing published for this version
-
v0.3.012 Apr 2015Nothing published for this version
-
v0.2.006 Apr 2015Nothing published for this version
-
v0.1.031 Mar 2015Nothing published for this version