public static function input($key)
    {
        $request = new Request();
        if ($request->isGet() || $request->isHead()) {
            $string = $request->getQuery($key);
        } elseif ($request->isPost()) {
            $string = $request->getPost($key);
        } elseif ($request->isPatch()) {
            $string = $request->getPatch($key);
        } elseif ($request->isPut()) {
            $string = $request->getPut($key);
        } elseif ($request->isDelete()) {
            $string = $request->getDelete($key);
        } elseif ($request->hasFiles()) {
            $string = $request->getFiles($key);
        } else {
            parse_str(file_get_contents('php://input'), $_STR);
            $string = $_STR[$key];
        }

        return (isset($string) && !empty($string)) ? $string : false;
    }
public static function input($key)
    {
        $request = new Request();
        if ($request->isGet() || $request->isHead()) {
            $string = $request->getQuery($key);
        } elseif ($request->isPost()) {
            $string = $request->getPost($key);
        } elseif ($request->isPatch()) {
            $string = $request->getPatch($key);
        } elseif ($request->isPut()) {
            $string = $request->getPut($key);
        } elseif ($request->isDelete()) {
            $string = $request->getDelete($key);
        } elseif ($request->hasFiles()) {
            $string = $request->getFiles($key);
        } else {
            parse_str(file_get_contents('php://input'), $_STR);
            $string = $_STR[$key];
        }

        return (isset($string) && !empty($string)) ? $string : false;
    }
public static function input ( $ key ) { $ request = new Request ( ) ; if ( $ request -> isGet ( ) || $ request -> isHead ( ) ) { $ string = $ request -> getQuery ( $ key ) ; } elseif ( $ request -> isPost ( ) ) { $ string = $ request -> getPost ( $ key ) ; } elseif ( $ request -> isPatch ( ) ) { $ string = $ request -> getPatch ( $ key ) ; } elseif ( $ request -> isPut ( ) ) { $ string = $ request -> getPut ( $ key ) ; } elseif ( $ request -> isDelete ( ) ) { $ string = $ request -> getDelete ( $ key ) ; } elseif ( $ request -> hasFiles ( ) ) { $ string = $ request -> getFiles ( $ key ) ; } else { parse_str ( file_get_contents ( 'php://input' ) , $ _STR ) ; $ string = $ _STR [ $ key ] ; } return ( isset ( $ string ) && ! empty ( $ string ) ) ? $ string : false ; }
Accpet input
Support get.post,put,patch,delete,others.

@param (string) $key name of filed (required in get,post request)

@since 1.0.0

@return mixed
Accpet input Support get . post put patch delete others .