mirror of
https://github.com/Respect/Validation.git
synced 2026-03-14 14:25:45 +01:00
No description
- PHP 99.1%
- Shell 0.9%
Replace hardcoded validator class lists with a declarative #[Mixin] attribute and extract the mixin generation logic into a reusable CodeGen namespace under src-dev/CodeGen/. The new MixinGenerator discovers prefix definitions and filtering rules by scanning #[Mixin] attributes on the target namespace's classes, removing the need for hardcoded configuration. It supports configurable interface types (Builder for __callStatic, Chain for __call) with custom suffixes, return types, and root extends. This is the first step toward extracting the code generation into a standalone package that can map __call/__callStatic to any namespace, possibly for Respect/StringFormatter and any kind of project in the future. |
||
|---|---|---|
| .github | ||
| bin | ||
| data | ||
| docs | ||
| LICENSES | ||
| src | ||
| src-dev | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .readthedocs.yaml | ||
| aliases.php | ||
| codecov.yml | ||
| composer.json | ||
| composer.lock | ||
| 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). - Advanced exception handling.
- More than 150 (fully tested) validators.
Learn More: