Recommend this page to a friend! |
Classes of Muhammad Umer Farooq | PHP Input Class | Readme.md | Download |
|
DownloadPHP input classThis package can process the current HTTP request values.Requirement
InstallationInstalling this package is very simple, first ensure you have the right PHP version and composer installed then in your terminal/(command prompt) run: DependenciesThis class use Feature1. Supported method get,post,put,patch,delete,files,others. 2. Clean input method(clean XSS attack/sanitize input). 3. Determine whether request is ajax or not. 4. Restore line breaks method. DescriptionIt can access the HTTP request values and return them in a more convenient way to the application. Currently it can check the input values when using the GET, POST, PUT, PATCH, DELETE, FILES etc parameters, filter the parameter values, check whether request is sent by a browser using AJAX, word wrap parameter values, check whether the request is a form submission, fix parameter value line breaks. > This class provide helpers functions for easily use of class. InputYou can get input by calling
EscapeYou can escape input by calling
Determine whether request is ajax/xhr?You can determine current request by calling
Restore line breaksYou can restore line breaks by calling
|