PHP code example of mmo / guzzle-xdebug-middleware

1. Go to this page and download the library: Download mmo/guzzle-xdebug-middleware 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/ */

    

mmo / guzzle-xdebug-middleware example snippets


$xdebugMiddleware = Mmo\Guzzle\Middleware\XdebugMiddleware::create('phpstorm');
$stack = GuzzleHttp\HandlerStack::create();
$stack->push($xdebugMiddleware);
$client = new GuzzleHttp\Client(['handler' => $stack]);