carlosocarvalho/simple-input

Simple input for get request inputs (post,get,put,delete)

1.0.0 2015-04-09 10:09 UTC

This package is auto-updated.

Last update: 2024-11-29 05:09:24 UTC


README

simple input php for get info (get,post,delete,put)

Build Status Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License Coverage Status

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();