Masticate https://jdrich@github.com/jdrich/masticate.git, (*1)
About
Masticate is an MIT licensed PHP input filtering library that wraps the
dangerous PHP superglobals ($_SERVER, $_GET, $_POST, $_FILES) to enforce some
level of data sanitation., (*2)
Uses
Masticate (destroys superglobals), (*3)
$filter = Filter::masticate();
Register (preserves superglobals), (*4)
$filter = new Filter(['get' => $_GET]); $filter->register(['post' =>
$_POST]);
Retreiving, (*5)
if($filter->has('get','param')) {
$foo = $filter->get('param');
}
Filtering, (*6)
$bar = $filter->get('param', 'SANITIZE_EMAIL');
Purpose
Masticate wraps the superglobals in a very simple layer of OO which implements
the build-in PHP filter extension., (*7)
Author
Jonathan Rich jdrich@gmail.com, (*8)
Feedback
Submit bugs to https://github.com/jdrich/masticate/issues., (*9)
License
Please see the file called LICENSE., (*10)