PHP code example of qlimix / http-logging-middleware

1. Go to this page and download the library: Download qlimix/http-logging-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/ */

    

qlimix / http-logging-middleware example snippets




use Qlimix\HttpMiddleware\RequestLoggerMiddleware;
use Qlimix\HttpMiddleware\ResponseLoggerMiddleware;

$requestLogger = new FooBarRequestLogger();
$responseLogger = new FooBarResponseLogger();

$requestLoggerMiddleware = new RequestLoggerMiddleware($requestLogger);
$responseLoggerMiddleware = new ResponseLoggerMiddleware($responseLogger);