Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request significantly expands the validator coverage and documentation for the GUMP PHP library, focusing on modern web, security, network, geographic, date/time, mathematical, and content/format validation. It introduces new validator rules, updates documentation to reflect these additions, and provides corresponding error messages and usage examples. The changes also add comprehensive tests for several new validators to ensure correctness.
Documentation and Validator Additions
README.md, grouped by theme: Security, Modern Web, Network, Geographic, Date/Time, Mathematical, and Content & Format. Each group includes a description and usage examples for new rules such asstrong_password,jwt_token,uuid,hex_color,latitude,future_date,prime,camel_case, etc.README.md. [1] [2]Error Message Support
lang/en.php, ensuring user-friendly feedback for validation failures (e.g., forstrong_password,jwt_token,hex_color,camel_case, etc.).Test Coverage for New Validators
camel_case,future_date,hex_color, andjwt_tokenvalidators, covering valid and invalid scenarios for each rule. [1] [2] [3] [4]Usage Examples
General Improvements
These changes collectively make GUMP more robust and suitable for modern PHP applications, with clear documentation and reliable validation for a wide range of data types and formats.