Download the PHP package yiier/yii2-humans-log without Composer
On this page you can find all versions of the php package yiier/yii2-humans-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-humans-log
Log for Humans for Yii2
人类能看得懂的操作日志
Description
- 此扩展只要你按照约定的规则,可以帮你记录操作日志。
- 只能监控单条数据,所以不适用于需要操作多条数据。
- 无法做到颗粒度很细的日志,比方说你要记录谁操作了订单的状态,此扩展是无法做到的,你只能记录谁操作了订单,也只能记录订单的最新状态,操作之前的状态无法记录。
- 有特殊情况的话,可以使用
yiier\humansLog\models\HLog::saveLog()
方法单独记录日志。 - 模板使用说明可以看截图,也可以看
src\views\h-log-template\_form.php
文件。
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Migrations
Run the following command
Configuration
Once the extension is installed, simply modify your application configuration as follows:
Usage
Method One (方式一,推荐)
you need to include it in config in bootstrap section:
Method Two (方式二)
Configure Controller class as follows :
Configure Model class as follows :
DIY USE
Demo
template
Routing
You can then access Merit Module through the following URL:
Screenshots
All versions of yii2-humans-log with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package yiier/yii2-humans-log contains the following files
Loading the files please wait ....