juanchosl / validators
Little methods collection in order to validate variables contents
dev-master
2024-03-04 16:08 UTC
Requires
- php: ^7.1 || ^8.0
- ext-mbstring: *
Requires (Dev)
- phpstan/phpstan: 1.10.*
- phpunit/phpunit: 9.6.*
This package is auto-updated.
Last update: 2024-05-19 18:22:20 UTC
README
Description
Little methods collection in order to validate variables contents
How to use
StringValidation::isEmail("juanchosl@hotmail.com"); //true
or
$validator = new StringValidations('juanchosl@hotmail.com"');
$validator
->is()
->isNotEmpty()
->isLengthGreatherThan(15)
->isEmail();
$validator->success(); //true