PHP code example of patrickriemer / http-log

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

    

patrickriemer / http-log example snippets

regexp
use PatrickRiemer\HttpLog\Http\Middleware\LogRequestResponse;

protected $middlewareGroups = [
    'api' => [
        LogRequestResponse::class,
    ],
];
shell
HTTP_LOG_ENABLED=true