oliverkuldmae / php-commons-validator
Port of Java Apache Commons Validator
Installs: 16 068
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.3
- ext-intl: *
- ext-mbstring: *
- true/punycode: ~2.0
Requires (Dev)
- phpunit/phpunit: ^6
This package is auto-updated.
Last update: 2025-03-17 14:43:48 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