2017 © Pedro Peláez
 

library masticate

Consume and contain request data

image

jdrich/masticate

Consume and contain request data

  • Thursday, December 4, 2014
  • by jdrich
  • Repository
  • 1 Watchers
  • 0 Stars
  • 105 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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)

The Versions

04/12 2014

dev-master

9999999-dev https://github.com/jdrich/masticate

Consume and contain request data

  Sources   Download

MIT

04/12 2014

1.0.0

1.0.0.0 https://github.com/jdrich/masticate

Consume and contain request data

  Sources   Download

MIT