Login   Register  
PHP Classes
elePHPant
Icontem

Simple PHP Validation class: Validate string value according to different 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 (18)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-05-09 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 359 All time: 6,133 This week: 1,508Up
Version License PHP version Categories  
simple-validator 1.0MIT/X Consortium License5.3PHP 5, Validation
Description Author  

This class can Validate string value according to different rules.

It can take a text string value and verify if it satisfy several types of validation rules.

Currently it supports validating as required non-empty value, number value, e-mail address, have only letters or letters and numbers, IP address, URL, have a given length range.

The error messages associated to each type of validation are defined in a separate configuration script.

Picture of Can Gelis
Name: Can Gelis <contact>
Classes: 1 package by
Country: Turkey Turkey
Age: ???
All time rank: 322952 in Turkey Turkey
Week rank: 1821 Up27 in Turkey Turkey Up

  Files folder image Files  
File Role Description
Files folder imageerrors (1 file)
Files folder imageunit-test (10 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file licence.txt Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Plain text file simple-validator-exception.class.php Class Class source
Plain text file simple-validator.class.php Class Class source

  Files folder image Files  /  errors  
File Role Description
  Accessible without login Plain text file en.php Conf. Configuration script

  Files folder image Files  /  unit-test  
File Role Description
  Accessible without login Plain text file alpha.test.php Test Unit test script
  Accessible without login Plain text file bootstrap.php Test Unit test script
  Accessible without login Plain text file email.test.php Test Unit test script
  Accessible without login Plain text file extended_class.test.php Test Unit test script
  Accessible without login Plain text file input_name_param.test.php Test Unit test script
  Accessible without login Plain text file integer.test.php Test Unit test script
  Accessible without login Plain text file ip.test.php Test Unit test script
  Accessible without login Plain text file multiple_parameter.test.php Test Unit test script
  Accessible without login Plain text file required.test.php Test Unit test script
  Accessible without login Plain text file url.test.php Test Unit test script

 Version Control Unique User Downloads Download Rankings  
 100%Total:359All time:6,133
 This week:0This week:1,508Up
 User Comments (1)