Skip to content

vperyod/vperyod.method-handler

Repository files navigation

vperyod.method-handler

Method override handler

Latest version Build Status Coverage Status Quality Score

Installation

composer require vperyod/method-handler

Usage

// Create handler with Auth and ResumeService instance
$handler = new Vperyod\MethodHandler\MethodHandler();

// Add to your middleware stack, radar, relay, etc.
$stack->middleware($handler);

// In your views generating forms, you can use the Helper to generate an
// appropriate hidden input.
$helper = new Vperyod\MethodHandler\MethodOverrideHelper;

echo $helper('PUT');
// <input type="hidden" name="__method_overide" value="PUT" />

About

PSR7 Method Override Middleware

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages