Download the PHP package jp-toolkit/request-helper without Composer
On this page you can find all versions of the php package jp-toolkit/request-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jp-toolkit/request-helper
More information about jp-toolkit/request-helper
Files in jp-toolkit/request-helper
Package request-helper
Short Description A helper for fetching request data.
License GPL-3.0-or-later
Homepage https://github.com/jprieton/jp-toolkit-request-helper/
Informations about the package request-helper
JP Toolkit Request Helper
This helper serves two purposes:
- It pre-processes global input data for security.
- It provides some helper methods for fetching input data and pre-processing it.
Accessing form data
Using POST, GET, COOKIE, or SERVER Data
This helper let to you fetch POST, GET, COOKIE or SERVER items. The main advantage of using the provided methods rather than fetching an item directly $_POST['something']
is that the methods will check to see if the item is set and return NULL if not. This lets you conveniently use data without having to test whether an item exists first. In other words, normally you might do something like this:
With this helper methods you can simply do this:
Please read our Wiki for more detailed information, advanced usage and shorthands.
Autoloading
You'll need to use an autoloader with this. Ideally, this would be Composer.
Composer
From the command line:
Bug tracker?
Have a bug? Please create an issue on GitHub at https://github.com/jprieton/jp-toolkit-request-helper/issues)