Recommend this page to a friend! |
Classes of Alexey Dodonov | Mezon PHP HTTP Request Values | README.md | Download |
|
DownloadGlobal access for request parametersIntroThis class will help you to fetch data from $_POST and $_GET arrays. InstallationJust print in console
And that's all ) Learn moreMore information can be found here: How to startThe firs steps are quite simple
Fields prioritiesIn case you have the same parameters in $_GET, $_POST and other global arrays, then they will be prioritized in this way:
For example:
Router parametersYou can pass your Router object to this class and fetch parameters for non-static routes:
Security tokens in HTTP headersThere are a way to fetch security token from headers:
For example if you will pass in headers something like that:
And then call:
Then this call will return WrappersThere are some convenient wrappers were implemented:
Or wrapper for check-boxes:
In this call the method |