-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Greg Bowler edited this page Mar 9, 2025
·
1 revision
By default, PHP passes all sensitive user information around in superglobal variables, available for reading and modification in any code, including third party libraries. This directly violates a lot of the benefits of Object Oriented Programming, and can lead to unmaintainable code.
Assuming there are object oriented abstractions to the superglobals set up, this library can be used to replace all superglobals with objects that alert the developer of their protection and encapsulation, with an optional whitelist of superglobals to keep.
// TODO: Complete documentation.