geggleto / method-override
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/geggleto/method-override
Requires
- psr/http-message: 1.0
Requires (Dev)
- phpunit/phpunit: ^4.0
- slim/slim: ^3.0-RC2
This package is auto-updated.
Last update: 2025-09-29 01:43:42 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