PHP code example of qingbing / yii2-operate-log

1. Go to this page and download the library: Download qingbing/yii2-operate-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/ */

    

qingbing / yii2-operate-log example snippets


'controllerMap' => [
    // 操作日志
    'operate-log' => \YiiOperateLog\controllers\OperateLogController::class,
]

$bool = OperateLogLogic::getInstance()->add('xyx', ['xx'=>12],'key', 'ok');
var_dump($bool);