PHPackages                             rstgroup/http-method-override - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. rstgroup/http-method-override

ActiveLibrary[HTTP &amp; Networking](/categories/http)

rstgroup/http-method-override
=============================

HTTP method override service

2.1.1(8y ago)28.2k2[1 PRs](https://github.com/rstgroup/http-method-override/pulls)PHPPHP &gt;=5.6

Since Feb 2Pushed 5y ago5 watchersCompare

[ Source](https://github.com/rstgroup/http-method-override)[ Packagist](https://packagist.org/packages/rstgroup/http-method-override)[ RSS](/packages/rstgroup-http-method-override/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (13)Used By (0)

http-method-override [![Build Status](https://camo.githubusercontent.com/04c7e256a9623e438227fc0ae70e67b0435368152f376aeb2c90cd46191e3e6c/68747470733a2f2f7472617669732d63692e6f72672f72737467726f75702f687474702d6d6574686f642d6f766572726964652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rstgroup/http-method-override)
===========================================================================================================================================================================================================================================================================================================================================

[](#http-method-override-)

HTTP method override service

This library allows you to override HTTP method using HTTP header ie. `X-HTTP-Method-Override`. Why? Because some clients cannot send non-standard methods like ie. `LINK`. It can be used as PSR-7 middeware or Zend Framework 2 module.

Installation
------------

[](#installation)

```
composer require rstgroup/http-method-override

```

Check suggested dependencies in [composer.json](composer.json) and add it to your dependencies.

You need to configure how it's possible to override methods. To do that you need to create/modify configuration provided by service which must exists in your dependecy container (as `config` key):

```
return [
    'rst_group' => [
        'http_method_override' => [
            'map' => [
                'POST' => ['LINK', 'PUT'],
            ],
            'override_headers' => [],
        ],
    ],
];
```

It will add ability to use POST method as LINK or PUT. You can override it using given request:

```
POST http://example.com/page
X-HTTP-Method-Override: PUT

```

`override_headers` allow you to define own header to override.

### Specific installation for PSR-7 middeware

[](#specific-installation-for-psr-7-middeware)

Use [Expressive Configuration Manager](https://github.com/mtymek/expressive-config-manager) to add library config. After this you can enable middleware in your middleware-stack using `RstGroup\HttpMethodOverride\HttpMethodOverrideMiddleware`service name in your container.

### Specific installation for Zend Framework 2 &amp; 3

[](#specific-installation-for-zend-framework-2--3)

Add module `RstGroup\HttpMethodOverride` to `application.config.php` file.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~246 days

Total

4

Last Release

3012d ago

Major Versions

1.0.0 → 2.0.02017-05-24

PHP version history (2 changes)1.0.0PHP ^5.5 || ^7.0

2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdf6ce4fb39c3f4d1771bbf17b528db91b17526b126d0927e21d66754c15f971?d=identicon)[alabme](/maintainers/alabme)

![](https://www.gravatar.com/avatar/6ffa5d2fe34b04844f854a4fa7ce073c69a500fe6352d69461756abf1b23599d?d=identicon)[rstgroup](/maintainers/rstgroup)

---

Top Contributors

[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (8 commits)")

---

Tags

httpmethod-overridemiddlewarepsr-7httppsrpsr-7middlewaremodulehttp method overrive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rstgroup-http-method-override/health.svg)

```
[![Health](https://phpackages.com/badges/rstgroup-http-method-override/health.svg)](https://phpackages.com/packages/rstgroup-http-method-override)
```

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.0M60](/packages/mezzio-mezzio-router)[mezzio/mezzio-helpers

Helper/Utility classes for Mezzio

134.3M67](/packages/mezzio-mezzio-helpers)[mezzio/mezzio-fastroute

FastRoute integration for Mezzio

162.7M52](/packages/mezzio-mezzio-fastroute)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
