01/02
2018
Provider for Spry
Default Validator for Spry Params, (*1)
$name = Spry::validator()->validate('name'); // No Error on Failure $id = Spry::validator()->required()->integer()->min(1)->validate('id'); // Spry Stop Error if Empty or not an Integer $date = Spry::validator()->required()->date()->validate('date'); // Spry Stop Error if Empty or not a Date format $password = Spry::validator()->required()->minLength(12)->validate('password'); // Spry Stop Error if Length is less then 12
https://github.com/blackbelt/php-validation, (*2)