mirror of
https://github.com/Respect/Validation.git
synced 2026-03-15 23:05:45 +01:00
No description
- PHP 99.1%
- Shell 0.9%
The `InterpolationRenderer` was violating the open-closed principle, because every time we would want to add a new modifier, we would need to change its implementation. This commit changes that behaviour by creating a `Modifier` interface. The classes implementing that interface are using a chain of responsibility to pass the data to the next one. Using a chain of responsibility makes a lot of sense, since it's only possible to have one modifier at a time. |
||
|---|---|---|
| .github | ||
| bin | ||
| data/domain/public-suffix | ||
| docs | ||
| library | ||
| tests | ||
| .docheader | ||
| .gitattributes | ||
| .gitignore | ||
| .readthedocs.yaml | ||
| aliases.php | ||
| CHANGELOG.md | ||
| codecov.yml | ||
| composer.json | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| mkdocs.yml | ||
| phpcs.xml.dist | ||
| phpstan.neon.dist | ||
| phpunit.xml.dist | ||
| README.md | ||
Respect\Validation
The most awesome validation engine ever created for PHP.
- Complex rules made simple:
v::numericVal()->positive()->between(1, 255)->isValid($input). - Granularity control for advanced reporting.
- More than 150 (fully tested) validation rules.
- A concrete API for non fluent usage.
Learn More: