PHP code example of geekdevs / guzzle-log-middleware-formatters

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

    

geekdevs / guzzle-log-middleware-formatters example snippets


$loggerMiddleware = new \Concat\Http\Middleware\Logger(
    $monolog, 
    new \Geekdevs\Http\Message\Formatter\CurlCommandFormatterAdapter()
);