Dead simple fluent API. Customizable. Reusable.
We can also use the check function to perform exception based validations. This is going to throw an exception when the validation fails:
The exception thrown by the
check function contains useful information about the rule which caused the validation fail, and it also has information about the validation process. Look and the ValidationException docs section to learn more about it.
There are a lot of useful standard rules for you to use already implemented in the core. Look at the
... read the whole story at github.com.