PHP Classes
elePHPant
Icontem

MH Validator: Validate multiple input text values

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 (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-05-02 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 196 All time: 7,522 This week: 682Up
Version License PHP version Categories  
mh-validator 1.0GNU General Publi...5.2Validation
Description Author  

This class can validate multiple input text values.

It can take text values as parameters and validate them according to multiple rules.

Currently it can validate as non-empty string, as number, as boolean, email address, IP address, URL, compare with given value, number between a range, etc..

Picture of Matteo Hertel
Name: Matteo Hertel <contact>
Classes: 2 packages by
Country: United Kingdom United Kingdom
Age: 24
All time rank: 3474149 in United Kingdom United Kingdom
Week rank: 217 Up9 in United Kingdom United Kingdom Up

Details provided by the author  
MH_Validator

PHP class to validate input,

There are two type of validation, with static function to take a one shot validation and a regular way by instantiating 
the object, in this way an error array will be generated if an error will be found.

Note by calling the notEmpty function the orginal input wll be stripped by reference

You can validate:


- string
- number
- float
- integer
- boolean
- notEmpty string
- email
- ip
- ipv4
- ipv6
- url
- alphabetic string
- strong password
- compare two string
- check if the string lenght is between two values

You can find the demo of this class at: http://test.matteohertel.com/MH_Validator/index.php
  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example script
Plain text file MH_validator.class.php Class Class source
Accessible without login Plain text file README.md Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:196All time:7,522
 This week:0This week:682Up
 User Comments (2)  
 
Really good , It allows to write rock solid code and avoiding...
1 year ago (Marco Giordano)
70%StarStarStarStar
good
1 year ago (Rahul Shambharkar)
70%StarStarStarStar