Validate
pear.php.net
Validation class
Package to validate various datas. It includes : - numbers (min/max, decimal or not) - email (syntax, domain check, rfc822) - string (predifined type alpha upper and/or lowercase, numeric,...) - date (min, max, rfc822 compliant) - uri (RFC2396) - possibility valid multiple data with a single method call (::multiple)
Pierre-Alain Joye
pajoye
pierre.php@gmail.com no
Thomas V.V.Cox
cox
cox@php.net no
Helgi Þormar Þorbjörnsson
dufuz
dufuz@php.net no
Amir Mohammad Saied
amir
amirsaied@gmail.com yes
David Coallier
davidc
david@echolibre.com yes
bertrand Gugger
toggg
bertrand@toggg.com no
Stefan Neufeind
neufeind
pear.neufeind@speedpartner.de no
2011-12-18
11:04:54
0.8.5
0.7.0
beta
beta
New BSD
QA Release Request #17963: Allow test suite to run without DNS resolver [patch by remicollet, adjustments by dufuz] Bug #17279 Validate::email() with 'fullTLDValidation' => 'true' always return false. Bug #17947 testdate test fails if date.timezone not set Bug #17948 multicard test fails
4.2.0
1.4.0b1
Date
pear.php.net
Net_IDNA
pear.php.net
0.7.1
2010-10-10
06:13:30
0.8.4
0.7.0
beta
beta
New BSD
QA release Bug #17555 Use correct pattern delim Bug #17755 Encoding to UTF-8 in Validate.php Bug #17756 Avoiding ereg
2009-11-24
06:13:30
0.8.3
0.7.0
beta
beta
New BSD
- * Bug #14865 Fixing some unit test failures (amir) - * Bug #15945 Improper string used to check domain dns (amir) - * Bug #16381 String format validation fails for VALIDATE_NAME.VALIDATE_XXX (amir) - * Bug #16427 Email Validation not working for check_domain (amir) - * Bug #16811 Should determine whether Net/IDNA.php is available less "destructively" (kguest) -
0.8.2
0.7.0
beta
beta
2009-01-31
New BSD
* Bug #12658: New lines at end of file create output (davidc) * Bug #11001 RFC822 Comments break PCRE (davidc) * Bug #14075 Validate::uri() rejects valid tag: URIs (davidc) * Bug #14866 Notice: Undefined index: VALIDATE_ITLD_EMAILS (amir) * Bug #14931 Warning: max(): Array must contain atleast one element (doconnor) * Doc Bug #14180 Typo in $modulo variable description (amir) * Doc Bug #14046 Docs desperately needed (amir) * Request #956 Validate::email() doesn't allow Internationalized Domain Names (IDN) (davidc) * Request #14791 Improve PHPCS Results [amir] * Removed Net_IDNA Dependency [davidc]
0.8.1
0.7.0
beta
beta
2007-12-10
New BSD
* Fix Bug #2662: Invalid email addresses are validated [dufuz] * Fix Bug #2936: Typo in sample_multiple.php [dufuz] * Fix Bug #4068: errant "return true;" in Validate_US::phoneNumber [dufuz] * Fix Bug #5390: XML Package Error [dufuz] * Fix Bug #7531: Email-checks need to be more RFC-compliant [amir] * Fix Bug #7648: VALIDATE_EALPHA does not include the Ã� character [amir] * Fix Bug #7864: uris rejected if subdomain contains underscores [amir] * Fix Bug #8442: Undefined variable "return" [amir] * Fix Bug #8629: eMail validation fails [amir] * Fix Bug #8768: Valid URL's are marked invalid [amir] * Fix Bug #8839: defect [amir] * Fix Bug #8851: date-validation allows letters in time. [amir] * Fix Bug #8853: E-Mail validation allows space before TLD [amir] * Fix Bug #9156: Missing characters in validation sequence [amir] * Fix Bug #9385: Missing characters in validation sequence [amir] * Fix Bug #9386: Missing punctuation mark (hyphen) in VALIDATE_NAME [amir] * Fix Bug #10044: email validation bug [davidc] * Fix Bug #10167: ISSN/ISBN validation is broken by _checkControlNumber [dufuz] * Fix Bug #10844: Validate::multiple() breaks by consolidating single field array [toggg] * Fix Bug #11073: date() %d validates \d{1,2} as correct [amir] * Fix Bug #11592: Email validation not working properly [davidc] * Fix Bug #12452: EALPHA_LOWER is missing a Ã� [thesaur] * Implement Feature #11244: documentation [davidc] * Implement Feature #8073: a@a is valid email [amir] * Removed dependency on Net_IDNA [davidc]
0.8.0
0.7.0
beta
beta
2006-11-17
New BSD
- string(): * New chars in VALIDATE_EALPHA_LOWER and UPPER - date(): * RFC822 date-time format compliant
0.6.5
0.6.5
beta
beta
2006-10-05
New BSD
- __stringToUtf7(): * #8442, Preventing a Notice - email(): * #8629, hostnames starting with numbers are valid because of their popularity * #8853, E-Mail validation allows space before TLD. - date(): * #8851, date-validation allows letters in time.
0.6.4
0.6.4
beta
beta
2006-07-31
New BSD
- string(): * #7648, Adding a new character to VALIDATE_EALPHA - email(): * #8073, a@a is a valid email address just in RFC restricted mode - email(): * #7531, utf-7 encoding - __stringToUtf7(): * new method added to do care about utf-7
0.6.3
0.6.3
beta
beta
2006-04-20
New BSD
- email(): * #6930, accepts options as an array to confirm to the Validate standard previous boolean $check_domain still accepted for backwards compatibility * #7176, introduces an experimental option "use_rfc822" which switch to a full RFC822 new checker * unit test enhanced and completed - class_exists call in mulitple() now passes false to the autoload param - uri(): * #6181, Accept URI terminating with a / * use !empty() instead of isset() * minus in the top domain as http://example.co-m is invalid * Double slashes are accepted in the path part (requested by bjori) As a consequence, only URIs with full authority can be valid, no relative URI * documentation header completed : usage notes , options and "strict" parameter * unit tests completed and updated , use php.net instead of unavailable example.org
0.6.2
0.6.2
beta
beta
2005-11-04
New BSD
- Change licence to the new BSD License (see http://www.opensource.org/licenses/bsd-license.php) - The path part in uri cannot contain two slash characters. - Refactored email() regexp, hardened hostname check (taken from uri()) (bug #5804) - Empty quoted email recipient is not valid, must at least contain a non blank char - Use & as delimiter as Ã�Â£ is problematic if the script is saved utf8 - Enhanced uri.phpt and email.phpt tests
0.6.1
0.6.1
beta
beta
2005-09-13
New BSD
- Bug #5390 XML Package Error - uri was enchanced to fully comply with RFC2396 (Bertrand) (forgotten in last release changelog)
0.6.0
0.6.0
beta
beta
2005-09-13
New BSD
- Move to Beta state - Enhance again email validation and unit test it - modulus methods fix if bcmath is not present
0.5.0
0.5.0
alpha
alpha
2005-05-20
New BSD
- Bug #2936, typo - Bug #2879, Issn wrong validation - Better email validation - Request #997 validate:date minium and maximum accept Date objects (By Torsten Roehr) - Request #4055 Making multiple() cope with new dir structure (By Torsten Roehr) To use with Validate_Finance_CreditCard then do 'type' => 'Finance_CreditCard_number' For Validate_US it would be 'type' => 'US_ssn' This applies to all packages like that under Validate. - unit testing for multiple (By Torsten Roehr) - CS fixes - Split country and finance classes and credit card functions into their own sub packages of Validate - New lead/developer (Helgi) - Few more none alpha chars added - _check_control_number renamed to _checkControlNumber _get_control_number renamed to _getControlNumber _mult_weights renamed to _multWeights - added email test - Split these functions over to a new sub package called Validate_ISPN (International Standard Product Numbers) * ISSN * ISBN * ISMN * EAN8 * EAN13 * EAN14 * UCC12 * SSCC - splited multiple() test in with (skipif not installed) or without card,
0.4.1
0.4.1
alpha
alpha
2004-03-17
New BSD
- fixed issue when validating IBANs via a static call - added missing test validate_UK.php to package.xml
0.4.0
0.4.0
alpha
alpha
2004-03-16
New BSD
- pt_BR moved to ptBR required for multiple support(BC break) - Add CH validation (Switzerland) - added Euro banknotes IDs - Improved UK postcodes validation - Fixed allowed_scheme options in Validate::uri() (Torsten Roehr) - Fixed optional arguments in Validate::number() (Torsten Roehr)
0.3.0
0.3.0
alpha
alpha
2003-12-05
New BSD
- Added Finance Validations for Financial related datas (S. Neufeind, Piotr Klaban) - Add polish validation (Piotr Klaban) - Add German validation (Stefan Neufeind) - Add EAN-UCC validtatio (see http://www.ean-ucc.org) (Piotr Klaban) - Add International Standard Serial Number (ISSN) and Music Number(ISMN) (Piotr Klaban, David Grant) - Drop Validate::url() in preferenc of Validate::uri() which is fully RFC2396 compliant - Move to PHP 3.0 license
0.2.0
0.2.0
alpha
alpha
2003-06-15
New BSD
- Add some dutch validations
0.1.1
0.1.1
alpha
alpha
2003-03-12
New BSD
- Validate::date(); argument parsing fixed