PHPackages                             ifnot/method-spoofing - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ifnot/method-spoofing

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

ifnot/method-spoofing
=====================

1.1(9y ago)2168PHPPHP &gt;=5.4.0

Since Apr 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Ifnot/method-spoofing)[ Packagist](https://packagist.org/packages/ifnot/method-spoofing)[ RSS](/packages/ifnot-method-spoofing/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Method Spoofing
=======================

[](#laravel-method-spoofing)

Laravel only handle http method spoofing on posted forms `HTTP POST`. This package allows you to spoof method on every kind of request (the hidden goal is to allows you to **make `POST` request from a `GET` request like `JSONP`**)

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

[](#installation)

Install the package with composer :

```
composer require ifnot/method-spoofing

```

### Require the service provider on Laravel 5.x

[](#require-the-service-provider-on-laravel-5x)

In the `config/app/php`, add to the end of your providers :

```
Ifnot\MethodSpoofing\MethodSpoofingServiceProvider::class

```

### Require the service provider on Lumen 5.x

[](#require-the-service-provider-on-lumen-5x)

In the `bootstrap/app.php`, add to the `Register Service Provider` section :

```
$app->register(Ifnot\MethodSpoofing\MethodSpoofingServiceProvider::class);

```

Usage
-----

[](#usage)

You have nothing to do.

All queries having a `_method` params (`GET` and `POST` are checked) will have the HTTP query method changed.

Example
-------

[](#example)

The following url ill be a `POST` request :

`http://www.my_website.com?_method=POST`

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~328 days

Total

2

Last Release

3437d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60343765?v=4)[ifnot](/maintainers/ifnot)[@ifnot](https://github.com/ifnot)

---

Top Contributors

[![IfnotFr](https://avatars.githubusercontent.com/u/1242308?v=4)](https://github.com/IfnotFr "IfnotFr (2 commits)")

### Embed Badge

![Health badge](/badges/ifnot-method-spoofing/health.svg)

```
[![Health](https://phpackages.com/badges/ifnot-method-spoofing/health.svg)](https://phpackages.com/packages/ifnot-method-spoofing)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M353](/packages/psalm-plugin-laravel)[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M303](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.4M231](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.8M398](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M141](/packages/illuminate-cookie)

PHPackages © 2026

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