Inspekt - PHP Input Filter

Klingt interessant.

Inspekt is an input filtering and validation library for PHP4 and PHP5.

Driving principles behind Inspekt

  1. Accessing user input via the PHP superglobals is inherently dangerous, because the “default” action is to retrieve raw, potentially dangerous data
  2. Piecemeal, “inline” filtering/validation done at various places in an application’s source code is too error-prone to be effective
  3. The purpose of a library or framework is to make a programmer’s job easier. Verbose and/or complex solutions should be avoided unless they are the only solution

Features of Inspekt

  • ‘Cage’ objects that encapsulate input and require the coder to use the provided filtering and validation methods to access input data
  • Automatic application of filtering as defined in a configuration file
  • A library of static filtering and validation methods
  • A simple, clear API
  • No external dependencies

Possibly related posts (automatically generated)