Login   Register  
PHP Classes

param: Validate and filter request 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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-06-01 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 405 All time: 5,880 This week: 1,461Up
Version License PHP version Categories  
param 1.0BSD License5.0HTTP, PHP 5, Validation
Description Author  

This class can be used to validate and filter request values.

It can take given POST or GET request values and validate them according to the expected type of the value. The types may be scalar, arrays or objects in JSON format.

The class can also filter values with a maximum length and discard values that seem to be used for SQL injection attempts.

The class can assume a default value for missing or invalid request values.

Picture of Domenico Pontari
Name: Domenico Pontari <contact>
Classes: 3 packages by
Country: Italy Italy
Age: ???
All time rank: 191975 in Italy Italy
Week rank: 1060 Up50 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageexamples (3 files)
Plain text file param.php Class base class
Plain text file paramList.php Class params collection for REST management
Accessible without login Image file input_workflow.png Data workflow for input management

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example01_intParam.php Example In this example we retrieve an int param setted as string but returned as integer
  Accessible without login Plain text file example02_boolParamFromURL.php Example In this example we retrieve an bool param from the URL
  Accessible without login Plain text file example03_paramList.php Example In this example we use paramList and retrieve current minimized state

Downloadparam-2010-06-01.zip 18KB
Downloadparam-2010-06-01.tar.gz 16KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
Tokenizer Download .zip .tar.gz This package is used to check strings in $_POST or $_GET vars Required
 Version Control Unique User Downloads Download Rankings  
 0%Total:405All time:5,880
 This week:0This week:1,461Up