oliverkuldmae/php-commons-validator

Port of Java Apache Commons Validator

v0.1.1 2018-10-09 07:58 UTC

This package is auto-updated.

Last update: 2020-06-16 14:19:26 UTC


README

PHP port of Apache Commons Validator.

Installation

Install the library with Composer:

composer require oliverkuldmae/php-commons-validator

Examples

<?php

use \PHPCommons\Validator\Rule\Email;

$validator = Email::getInstance();
$validator->isValid('some.person@example.com'); // => true
$validator->isValid('some.person@example.fbr'); // => false