mirror of
https://github.com/Respect/Validation.git
synced 2024-06-03 06:12:17 +02:00
9eafe52252
Currently, the Length rule does multiple things, yet it's limited. Because it does many things, it's also confusing. Turning the Length rule into a transformation allows for way more flexibility and clarity. The syntax becomes more verbose, but I can solve that later by creating a Transformer enables creating rules with the "length" as a prefix. While making this change, I also removed the support for counting objects and integers. I find that way too confusing. Signed-off-by: Henrique Moody <henriquemoody@gmail.com> |
||
---|---|---|
.github | ||
bin | ||
data/domain/public-suffix | ||
docs | ||
library | ||
tests | ||
.docheader | ||
.gitattributes | ||
.gitignore | ||
.readthedocs.yaml | ||
CHANGELOG.md | ||
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)->validate($input)
. - Granularity control for advanced reporting.
- More than 150 (fully tested) validation rules.
- A concrete API for non fluent usage.
Learn More: