carlosocarvalho / simple-input
Simple input for get request inputs (post,get,put,delete)
Installs: 16 856
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-10-29 05:04:33 UTC
README
simple input php for get info (get,post,delete,put)
Install Via composer
composer require carlosocarvalho/simple-input
Or configure composer.json
{ "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 $put = Input::put('key'); $put_all = Input::put(); $delete = Input::delete('key'); $delete_all = Input::delete();