-
-
Notifications
You must be signed in to change notification settings - Fork 6
User input
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
.
- Request-response lifecycle
- Running your application
- Project layout
- Application architecture
- Web servers
- URIs
- Page view
- Dynamic URIs and pages
- Headers and footers
- Page logic
- Protected globals
- User input
- Cookies
- Sessions
- DOM manipulation
- Custom HTML components
- DOM templates
- Binding data to the DOM
- Database
- Client side assets
- API Webservices
- Security
- Configuration
- Build system
- Coding styleguide