Releases: BlakvGhost/PHPValidator
v2.2.0 stable
Features
-
Full support for
*
wildcards in validation and transformation paths
Wildcards can now be used in input keys to dynamically apply rules or transformations to deeply nested structures.
Example:{ "users.*.email": "required|email" }
-
Improved nested array notation handling
Deeply nested array structures (e.g., users..addresses..city) are now fully supported across all layers:-
Validation
-
Transformation
-
Conditional mapping
-
-
Extended compatibility with hybrid structures using wildcards
You can now target nested keys inside arrays and objects simultaneously using wildcards.
Example:
{
"orders.*.items.*.product.id": "required|numeric"
}
Fixes
-
Fixed a bug where validation rules were not properly applied when using multi-level wildcards.
-
Resolved path conflicts involving explicit array indices combined with wildcards.
Breaking Changes
Validation rules using wildcard paths are now strictly interpreted, which may affect previously lenient or permissive behavior.
Full Changelog: v2.1.0...v2.2.0
v2.1.0 stable
- Implemented NotRequiredWithRule to ensure a field is not required if another specified field is present.
- Added passes method to validate the rule logic.
- Included message method to provide appropriate error messages using LangManager.
- Updated documentation and comments for clarity.
This rule is the inverse of RequiredWithRule, providing more flexible validation options.
Full Changelog: v2.0.2...v2.1.0
v2.0.2 stable
- Set empty field to blank string before validation
Addresses bug where validation fails on non-required fields
that are not present in the data. By initializing missing
fields to an empty string, validation rules like min, max,
size, etc. can be properly applied without triggering an
error due to an undefined index.
Fixes #124
Full Changelog: v2.0.1...v2.0.2
v2.0.1 stable
What's Changed
- Fix required rule validation for missing fields by @BlakvGhost in #14
Full Changelog: v2.0.0...v2.0.1
v2.0.0 stable
What's Changed
- Add feature to add default language for validation message by @BlakvGhost in #13
Full Changelog: v1.4.1...v2.0.0
v1.4 stable
What's Changed
- Update max length algo to work with file and array type by @BlakvGhost in #12
Full Changelog: v1.4...v1.4.1
v1.4 stable
What's Changed
- Fix custom rule interface namespace issues in Validator by @BlakvGhost in #11
Full Changelog: v1.3.2...v1.4
v1.3 stable
What's Changed
- Changing the username for download number recovery by @BlakvGhost in #8
- Edit readme with logo by @BlakvGhost in #9
- Add custom error message and review folder architecture by @BlakvGhost in #10
Full Changelog: v1.3...v1.3.2
v1.3 stable
What's Changed
- Added more tests by @v1p3r75 in #3
- V1p3r75/updated documentation by @v1p3r75 in #4
- Edit test format for using Validator class #2 by @BlakvGhost in #6
- Map rules by @BlakvGhost in #7
New Contributors
- @BlakvGhost made their first contribution in #6
Full Changelog: v1.2...v1.3
v1.2 stable
Full Changelog: v1.1.3...v1.2
Add several rule as Numeric, Alpha, UpperCase, LowerCase, Accepted...