Download the PHP package vboivin/superglobals without Composer
On this page you can find all versions of the php package vboivin/superglobals. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vboivin/superglobals
More information about vboivin/superglobals
Files in vboivin/superglobals
Package superglobals
Short Description Type-safe access to php superglobals
License MIT
Homepage https://github.com/vboivin/Superglobals
Informations about the package superglobals
Superglobals
Type-safe access to php superglobals.
Components
Server
Class representing the $_SERVER superglobal.
Example of accessing 'REQUEST_METHOD' on $_SERVER:
Example of using the raw $_SERVER superglobal:
Get
Class representing the $_GET superglobal.
Example of using $_GET with a user defined query string:
Post
Class representing the $_POST superglobal.
Example of using $_POST with a user defined form:
Cookies
Class representing the $_COOKIE superglobal.
Example of using $_COOKIE with user defined cookies:
Session
Class representing the $_SESSION superglobal.
Example of using $_SESSION with user defined properties:
SuperglobalException
This exception is thrown when you are not using a class attribute on the class being instantiated by one of the superglobals class defined in this library.
Here is an example using $_POST:
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Superglobals is MIT-licensed.