ggedde/spry-validator

Provider for Spry

Installs: 103

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:spryprovider

1.0.1 2020-04-21 00:46 UTC

This package is auto-updated.

Last update: 2024-04-21 19:38:39 UTC


README

Default Validator for Spry Params

Requires

Usage

$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

Full Documentation

https://github.com/blackbelt/php-validation