2017 © Pedro Peláez
 

library judex

The PHP validator.

image

newclass/judex

The PHP validator.

  • Tuesday, January 10, 2017
  • by newclass-pl
  • Repository
  • 0 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

README

license PHP 5.5+, (*1)

What is Judex?

Judex is a PHP validator., (*2)

Installation

The best way to install is to use the composer by command:, (*3)

composer require newclass/judex, (*4)

composer install, (*5)

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('test@newclass.pl');
$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.']

The Versions

10/01 2017

dev-master

9999999-dev

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

10/01 2017

dev-develop

dev-develop

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

10/01 2017

v1.3.0

1.3.0.0

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

04/12 2016

v1.2.0

1.2.0.0

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

04/12 2016

v1.1.1

1.1.1.0

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

04/12 2016

v1.1.0

1.1.0.0

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak

04/12 2016

v1.0.0

1.0.0.0

The PHP validator.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

by Michal Tomczak