geggleto / method-override
0.1.0
2015-12-04 18:14 UTC
Requires
- psr/http-message: 1.0
Requires (Dev)
- phpunit/phpunit: ^4.0
- slim/slim: ^3.0-RC2
This package is auto-updated.
Last update: 2024-10-29 04:47:22 UTC
README
Provides a PSR-7 compliant middleware that overrides the default HTTP VERB by inspecting the URI and the _method of a message body
URI: ?_method=<YOURVERB>
GET /index.php/youraction?_method=POST
Would actually turn into a POST request
OR
A POST route may provide a _method='' override
OR
You can specify the header X-Http-Method-Override to override