- 新增 ChangeLogLogic 和 ChangeLog 模型用于记录数据变更日志 - 引入 third-party 包 chance-fyi/operation-log 实现日志记录功能 - 在 composer.json 和 config/thinkorm.php 中添加相关配置
53 lines
1.1 KiB
JSON
53 lines
1.1 KiB
JSON
{
|
|
"name": "chance-fyi/operation-log",
|
|
"description": "Elegant logging of operations",
|
|
"type": "library",
|
|
"license": "MIT",
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Chance\\Log\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Chance\\Log\\Test\\": "tests/"
|
|
}
|
|
},
|
|
"authors": [
|
|
{
|
|
"name": "chance",
|
|
"email": "ctx_ya@qq.com"
|
|
}
|
|
],
|
|
"minimum-stability": "dev",
|
|
"require": {
|
|
"php": "^8.0",
|
|
"ext-json": "*"
|
|
},
|
|
"require-dev": {
|
|
"illuminate/database": "^8.0",
|
|
"topthink/think-orm": "2.0.x-dev",
|
|
"fakerphp/faker": "^1.21@dev",
|
|
"friendsofphp/php-cs-fixer": "dev-master",
|
|
"phpunit/phpunit": "9.6.x-dev",
|
|
"phpstan/phpstan": "1.11.x-dev",
|
|
"hyperf/database": "^3.0@dev",
|
|
"hyperf/di": "^3.0@dev",
|
|
"hyperf/pimple": "^2.1",
|
|
"hyperf/config": "^3.0@dev"
|
|
},
|
|
"scripts": {
|
|
"test": "phpunit",
|
|
"cs-fix": "php-cs-fixer fix $1",
|
|
"analyse": "phpstan analyse --memory-limit=-1"
|
|
},
|
|
"bin": [
|
|
"bin/chance-fyi-operation-log"
|
|
],
|
|
"extra": {
|
|
"hyperf": {
|
|
"config": "Chance\\Log\\orm\\hyperf\\ConfigProvider"
|
|
}
|
|
}
|
|
}
|