PHP Classes

param: Validate and filter request values

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 433 This week: 1All time: 6,292 This week: 571Up
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: 204080 in Italy Italy
Week rank: 420 Up17 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 17KB
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:433
This week:1
All time:6,292
This week:571Up