2017 © Pedro Peláez
 

library method-spoofing

image

ifnot/method-spoofing

  • Friday, March 10, 2017
  • by ifnot
  • Repository
  • 1 Watchers
  • 2 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

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), (*1)

Installation

Install the package with composer :, (*2)

composer require ifnot/method-spoofing

Require the service provider on Laravel 5.x

In the config/app/php, add to the end of your providers :, (*3)

Ifnot\MethodSpoofing\MethodSpoofingServiceProvider::class

Require the service provider on Lumen 5.x

In the bootstrap/app.php, add to the Register Service Provider section :, (*4)

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

Usage

You have nothing to do., (*5)

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

Example

The following url ill be a POST request :, (*7)

http://www.my_website.com?_method=POST, (*8)

The Versions

10/03 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Anael Favre

10/03 2017

1.1

1.1.0.0

  Sources   Download

The Requires

 

by Anael Favre

15/04 2016

1.0

1.0.0.0

  Sources   Download

The Requires

 

by Anael Favre