mirror of
https://github.com/Respect/Validation.git
synced 2026-03-14 22:35:45 +01:00
No description
- PHP 99.1%
- Shell 0.9%
Now empty values are again allowed in FilteredArray-style validators. To solve the issue with negation, a Result attribute was added to signal indeciseveness (when a result cannot be reliably inverted). On such cases, we consider that result to be valid. For example, `v::not(v::min(v::equals(10)))` says "The lowest value of the iterable input should not be equal 10". If the input is empty, we cannot decide whether its minimum is equal to 10 or not, so the validator essentially becomes a null-op. Users that want to ensure these validators have a valid decidable target must use it in combination with `Length` or other similar validators to achieve the same result. |
||
|---|---|---|
| .github | ||
| bin | ||
| data | ||
| docs | ||
| LICENSES | ||
| src | ||
| src-dev | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .readthedocs.yaml | ||
| aliases.php | ||
| codecov.yml | ||
| composer.json | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| mkdocs.yml | ||
| phpbench.json.dist | ||
| phpcs.xml.dist | ||
| phpstan.neon.dist | ||
| phpunit.xml.dist | ||
| README.md | ||
| REUSE.toml | ||
Respect\Validation
The most awesome validation engine ever created for PHP.
- Complex validation made simple:
v::numericVal()->positive()->between(1, 255)->isValid($input). - Granularity control for advanced reporting.
- More than 150 (fully tested) validators.
- A concrete API for non fluent usage.
Learn More: