PHP Classes

validation: Validation with non-regular expression patterns

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 3,815 All time: 842 This week: 673Up
Version License Categories
validation 1.0GNU General Publi...Text processing, Validation
Description 

Author

This class is meant to validate text strings using patterns that are defined with a simple syntax that is not based on regular expressions.

Here are a few examples of validation patterns:

"2N 5L" = 2Numbers 1Whitespace 5Letters e.g.: "12 ABCDE"
"2-5N 5L" = 2-5Numbers 1Whitespace 5Letters e.g.: "1234 ABCDE"

"2N:2N:2N" would match on "12:35:24" for checking time
"2N.2N.4N" would match on "01.01.2004" for checking date

This package includes sub-classes to do more specific validations like verifying address data patterns.

Picture of Sven Wagener
Name: Sven Wagener <contact>
Classes: 10 packages by
Country: Germany Germany
Age: 45
All time rank: 141 in Germany Germany
Week rank: 164 Down8 in Germany Germany Down

  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file examples_validate.class.php Example Examples for working with base validation class
Accessible without login Plain text file validate.class.php Class Base validation class
Accessible without login Plain text file validate_address.class.php Class Validate address data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,815
This week:0
All time:842
This week:673Up
User Ratings User Comments (1)
 All time
Utility:87%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1267