mirror of
https://github.com/Respect/Validation.git
synced 2024-06-14 03:25:09 +02:00
433ceb4452
These changes will also introduce an abstract rule that validates non-empty-iterable values. The abstract rule can also be the parent of the recently created "Min" rule. Therefore, I've changed that class too. I've introduced many tests for the "Each" rule to make sure what its expected behavior is. I'm not super happy with its output, but I tried a couple of options, and it is the best choice. Note that Each now rejects `stdClass` and empty iterable values. I thought that would make sense, as it would be useless when the input is empty. 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: