PHP Classes

Form Data Cleaner: Sanitise GET and POST values based on type rules

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 48%Total: 1,779 All time: 2,199 This week: 673Up
Version License Categories
requestcleaner 1.0.0Free for non-comm...HTTP, Data types, Security
Description 

Author

This class can be used to sanitise GET and POST values based on expected data type rules.

It takes a list of GET and POST request parameters that it should analyse and the respective data types that it expects. Currently it supports the types: integer, double, string, boolean and array.

String values may be escaped for use in MySQL queries or display in HTML pages without further encoding by the application.

Missing or invalid values may be overwritten with default values.

Any request values that are not listed may either be removed or subject to default processing.

Picture of Gabriel Harrison
Name: Gabriel Harrison <contact>
Classes: 1 package by
Country: United Kingdom

  Files folder image Files (1)  
File Role Description
Accessible without login Plain text file requestcleaner.php Class Commented class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,779
This week:0
All time:2,199
This week:673Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:48%StarStarStar
Rank:3041