Login   Register  
PHP Classes

Data Validator: Validate a set of values based on a list of rules

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (0)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
-Not yet rated by the usersTotal: 563 All time: 4,968 This week: 1,808Up
Version License PHP version Categories  
data-validator 1.0GNU General Public Lice...5.0PHP 5, Validation
Description Author  

This class can validate a set of values based on a list of rules.

It takes an array of values and a list of rules to validate the input values.

The rules list associate a rule expression to be evaluated and the associated error message if the rule is not verified.

The rule expression defines the name of the input variable to be verified and the type of rule it has to satisfy to be considered an error.

The class can consider validation of some values depending on whether other values are valid.

The actual validation rules are implemented by separate classes. Custom validation classes may be added to support new validation types.

Picture of Mark Rolich
Name: Mark Rolich <contact>
Classes: 9 packages by
Country: Armenia Armenia
Age: 34
All time rank: 9702 in Armenia Armenia
Week rank: 211 Up2 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 2x

 Unique User Downloads Download Rankings  
 Total:563All time:4,968
 This week:0This week:1,808Up