simple input php for get info (get,post,delete,put), (*1)
, (*2)
Install Via composer
composer require carlosocarvalho/simple-input
Or configure composer.json, (*3)
{
"require": {
"carlosocarvalho/simple-input": "1.0.0"
}
}
Example Use
<?php
use Carlosocarvalho\SimpleInput\Input\Input;
#sending data post|get|put|delete
$post = Input::post('key');
$post_all = Input::post();
$get = Input::get('key');
$get_all = Input::get();
Important sending form method post with php, use input hidden[name="_method" value="put|delete"]
```php
<?php
$put = Input::put('key');, (*4)
$put_all = Input::put();, (*5)
$delete = Input::delete('key');, (*6)
$delete_all = Input::delete();, (*7)