/simple-input

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

Primary LanguagePHPMIT LicenseMIT

Simple Input

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