juanchosl/validators

Little methods collection in order to validate variables contents

dev-master 2024-03-04 16:08 UTC

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