Download the PHP package initphp/input without Composer
On this page you can find all versions of the php package initphp/input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download initphp/input
More information about initphp/input
Files in initphp/input
Informations about the package input
InitPHP Input
Is a library for prioritizing or verifying Get, Post and Raw inputs.
Requirements
- PHP 7.2 or later
- InitPHP ParameterBag
- InitPHP Validation
Installation
Usage
Example :
Example :
Example :
Methods
Inputs::get()
Inputs::post()
Inputs::raw()
Data from reading php://input
.
Getting Input with Priority
Inputs::getPost()
$_GET
-> $_POST
Inputs::getRaw()
$_GET
-> php://input
Inputs::getPostRaw()
$_GET
-> $_POST
-> php://input
Inputs::getRawPost()
$_GET
-> php://input
-> $_POST
Inputs::postGet()
$_POST
-> $_GET
Inputs::postRaw()
$_POST
-> php://input
Inputs::postGetRaw()
$_POST
-> $_GET
-> php://input
Inputs::postRawGet()
$_POST
-> php://input
-> $_GET
Inputs::rawGet()
php://input
-> $_GET
Inputs::rawPost()
php://input
-> $_POST
Inputs::rawGetPost()
php://input
-> $_GET
-> $_POST
Inputs::rawPostGet()
php://input
-> $_POST
-> $_GET
Has it been declared?
Checks to see if the requested entry has been declared.
Inputs::hasGet()
It does something like isset($_GET['key'])
, case-insensitively.
Inputs::hasPost()
It does something like isset($_POST['key'])
, case-insensitively.
Inputs::hasRaw()
Case-insensitively, it queries the body inputs for a key value.
Credits
License
Copyright © 2022 MIT License
All versions of input with dependencies
ext-json Version *
initphp/parameterbag Version ^1.1
initphp/validation Version ^1.0