PHP Classes
elePHPant
Icontem

ApPHP Data Validator: Validate sets of values in different ways

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2012-04-20 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 367 This week: 2All time: 6,426 This week: 542Up
Version License PHP version Categories
php-data-validator 1.0.1GNU General Publi...5.0PHP 5, Validation
Description Author

This package can validate sets of values in different ways.

There is a data container class that can abstract the access to a set of values to be validated, like for instance the values of $_POST, $_GET, $_REQUEST.

Several other classes can implement different types of validation on the given set of values, like validating the values as strings, numbers, e-mail addresses and URLs.

If any of the set values is invalid, it is possible to retrieve the error messages associated to the unsatisfied validation rules.

Picture of Chara Miteo
Name: Chara Miteo <contact>
Classes: 7 packages by
Country: United States United States
Age: ???
All time rank: 59372 in United States United States
Week rank: 401 Up42 in United States United States Up

Details
////////////////////////////////////////////////////////////////////////////////
// 
// Advanced Power of PHP
// ---------------------
// http://www.apphp.com
// 
// ApPHP DataValidator Basic
//
// Version: 1.0.1
//
////////////////////////////////////////////////////////////////////////////////

Thank you for using ApPHP.com software!
--------------------------------------------------------------------------------
It's very easy to get started with ApPHP DataValidator!!!

Installation:
   http://apphp.com/php-datavalidator/index.php?page=installation 
   or docs/Installation.html

Getting Started:
   http://apphp.com/php-datavalidator/index.php?page=getting_started
   or docs/GettingStarted.html

For more information visit: 
   site 	http://apphp.com/php-datavalidator/index.php?page=examples
   forum 	http://www.apphp.net/forum/


1. DESCRIPTION
--------------------------------------------------------------------------------
ApPHP DataValidator is a simple lightweight tool useful for primary general data
checks. It handles numbers, strings, emails, URLs. A range of parameters is
provided for a wide variety of different verifications. All parameters are used
optionally and could be switched on and off for every specific value.

The DataValidator component excepts an array or an object as data container, so it
can be easily used to check values got by HTTP request, obtained from data base,
parsed XML or CSV file or any other source as soon as data are in correct format
(array('key'=>'value')). Error handling is made easy and flexible. If validation
fails, you can either obtain a generated error-message or use error-details for
logging and user informing in you own style.


2. MAIN FEATURES
--------------------------------------------------------------------------------
- Checks numbers for type, range, special values (null)
- Checks strings for size, pointing and spaces availability
- Checks URL for correct format
- Checks e-mail for correct format
- Can be stopped after the first validation failure or kept through all values
- Returns errors in a convenient way 
- Works with array of HTTP request as a default data source
- Excepts any data source in simple, natural for forms and data-base rows view


3. FILE STRUCTURE
--------------------------------------------------------------------------------
- docs/
   -- ChangeLog.txt
   -- GettingStarted.html
   -- Installation.html
- license/
   -- GNU License.txt
- examples/
   -- example_array.php
   -- example_array_code.php
   -- example_array_script.php
   -- example_form.php
   -- example_form_simple.php
   -- index.php
- validator.class.php
- index.html  
- readme.txt
- install.txt

Screenshots  
  • image3.png
  • image2.png
  • image1.png
  Files folder image Files  
File Role Description
Files folder imagedocs (3 files)
Files folder imageexamples (5 files)
Files folder imagelicense (1 file)
Accessible without login Plain text file index.html Doc. index.html
Accessible without login Plain text file INSTALL.txt Doc. Installation Guide
Accessible without login Plain text file README.txt Doc. ReadMe
Plain text file validator.class.php Class Main Class

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Plain text file ChangeLog.txt Doc. Documantation file
  Accessible without login Plain text file GettingStarted.html Doc. Getting Started
  Accessible without login Plain text file Installation.html Doc. Installation Guide

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example_array.php Example Example file
  Accessible without login Plain text file example_array_script.php Example Example file
  Accessible without login Plain text file example_form.php Example Example file
  Accessible without login Plain text file example_form_simple.php Example Example file
  Accessible without login Plain text file index.php Aux. Example file

  Files folder image Files  /  license  
File Role Description
  Accessible without login Plain text file GNU_License.txt Lic. License

 Version Control Unique User Downloads Download Rankings  
 0%
Total:367
This week:2
All time:6,426
This week:542Up