PHP code example of geggleto / method-override

1. Go to this page and download the library: Download geggleto/method-override library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

geggleto / method-override example snippets


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