Skip to content
Greg Bowler edited this page Jun 23, 2018 · 14 revisions

The Input repository is separately maintained at https://github.com/PhpGt/Input

By default, PHP exposes all user input in the superglobal variables $_GET, $_POST and $_FILES, which are readable and writable by any code, including third party libraries.

All superglobals are protected within

By default, PHP stores all user input in global variables, available for reading and modification in any code, including third party libraries. PHP.Gt/Input wraps user input in objects that promote encapsulation, allowing functions to be passed only the user input they require, rather than having read/write access to everything.

All user input is handled using the Input object, which is assigned to all Logic classes as $this->input.

Clone this wiki locally