Download the PHP package newclass/judex without Composer
On this page you can find all versions of the php package newclass/judex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package judex
README
What is Judex?
Judex is a PHP validator.
Installation
The best way to install is to use the composer by command:
composer require newclass/judex
composer install
Use example
use Judex\Validator\EmailValidator;
use Judex\Validator\NotEmptyValidator;
use Judex\ValidatorManager;
$validator=new ValidatorManager();
$validator->addValidator(new EmailValidator());
$validator->addValidator(new NotEmptyValidator());
$result=$validator->validate('[email protected]');
$valid=$result->isValid(); //return true
$result=$validator->validate('test.newclass.pl');
$valid=$result->isValid(); //return false
$errors=$result->getErrors(); //return ['Value is not valid format email.']
$result=$validator->validate('');
$valid=$result->isValid(); //return false
$errors=$result->getErrors(); //return ['Value can\'t be empty.']
All versions of judex with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.0
The package newclass/judex contains the following files
Loading the files please wait ....