yagas / yii2-debug4mongo
Yii2 Debug for MongoDB
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/yagas/yii2-debug4mongo
Requires
- php: >=7.4
- yiisoft/yii2-debug: 2.1.25
- yiisoft/yii2-mongodb: ^3.0
This package is auto-updated.
Last update: 2025-09-25 06:40:12 UTC
README
Yii 2 Debug For MongoDB
本项目为yii2-debug的扩展,使用MongoDB对debug数据进行存储。
目录结构
src/ 代码目录
src/models/ 数据模型
src/views/ 视图文件
src/controllers/ 控制器
安装依赖
- PHP支持>=5.4
- yii2-mongodb
- yii2-debug支持>=2.1.25(基于此版本构建而来)
安装说明
composer require yagas/yii2-debug4mongo
配置说明
if (YII_ENV_DEV) { $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yagas\debug\Module', 'logTarget' => [ 'class' => 'yagas\debug\LogTarget', 'app_no' => 'localhost_001', // 为当前站点设定标识 ], 'percent' => 10, // 百分之十的几率清除历史数据(GC) ]; }