Skip to content

berry-langerak/Validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Particle\Validator

Particle\Validator is a very small validation library, with the easiest and most usable API we could possibly create.

Small usage example

$v = new Validator;
$v->required('first_name')->length(5);
$v->validate(['first_name' => 'Berry']); // bool(true).

$v->required('last_name')->length(10);
$v->validate(['first_name' => 'Berry']); // bool(false).

$v->getMessages(); // array with error messages.

About

Particle\Validator is a validation library with an extremely clean API which makes validation fun!

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%