Skip to content

[READ ONLY] Subtree split of the snicco/method-override-middleware package (see snicco/snicco).

License

Notifications You must be signed in to change notification settings

snicco/method-override-middleware

Repository files navigation

HTTP-method override middleware for snicco/http-routing

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis PHP-Versions

A middleware for the snicco/http-routing component that allows you to override the HTTP method for POST requests to either PATCH|PUT|DELELE based on the post body.

Installation

composer require snicco/method-override-middleware

Usage

This middleware should be added for globally in the MiddlewareResolver.

To allow overwriting the HTTP method, either a _method must be present in the request body or the X-HTTP-Method-Override header must be present.

Overwriting the HTTP method only works for POST methods. Valid values are PATCH|PUT|DELELE.

Contributing

This repository is a read-only split of the development repo of the Snicco project.

This is how you can contribute.

Reporting issues and sending pull requests

Please report issues in the Snicco monorepo.

Security

If you discover a security vulnerability, please follow our disclosure procedure.

About

[READ ONLY] Subtree split of the snicco/method-override-middleware package (see snicco/snicco).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages