PHP Classes

Validator.php: Form Validation class

Recommend this page to a friend!

  Author Author  
Picture of Kevin Burke
Name: Kevin Burke <contact>
Classes: 2 packages by
Country: United States United States
Age: 41
All time rank: 27032 in United States United States
Week rank: 178 Up17 in United States United States Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class is meant to validate data entered in forms.

It provides 11 types of validation. To specify a field to validate it requires the field name and, in some cases, other arguments.

The class will return false if the validation failed.

Validator has support to check if a field is or has:
- filled in
- of specified length (<, >, >=, <=, =)
- a valid email
- a string equal in string value to another field
- a string between two values (string length)
- punctuation
- an integer of specified value (<, >, >=, <=, =)
- an integer between two values
- only alphabetic characters
- only alphanumeric characters
- a date of specified format

  Classes of Kevin Burke  >  Validator.php  >  Download Download .zip .tar.gz  >  Support forum Support forum (3)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Validator.php
Base name: validator
Description: Form Validation class
Version: 1.0.0
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 6930 users
All time rank: 284
Week users: 1 user
Week rank: 171 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Text processing Manipulating and validating text data View top rated classes
Group folder image Validation Validation algorithms View top rated classes


  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (83%) Good (85%) - Good (82%) - - Not sure (58%) 1523
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Accessible without login HTML file form.html Data Form file
Accessible without login Plain text file validation.php Example validation test
Plain text file Validator.php Class Class file

Install with Composer Install with Composer - Download Download all files: validator.tar.gz validator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Accessible without login HTML file form.html Data Form file
Accessible without login Plain text file validation.php Example validation test
Plain text file Validator.php Class Class file

Install with Composer Install with Composer - Download Download all files: validator.tar.gz validator.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.