PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2010-06-01 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 427 All time: 6,017 This week: 1,112Up
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
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:427
This week:0
All time:6,017
This week:1,112Up