PHP code example of beter / yii2-log-request-response

1. Go to this page and download the library: Download beter/yii2-log-request-response 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/ */

    

beter / yii2-log-request-response example snippets


'logRequestResponse' => [
    'class' => \Beter\Yii2\LogRequestResponse\LogRequestResponseComponent::class,
    'queryParamPatternsToMask' => ['/token/i', '/^api_key$/i'],
],