PHPackages                             yagas/yii2-debug4mongo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. yagas/yii2-debug4mongo

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

yagas/yii2-debug4mongo
======================

Yii2 Debug for MongoDB

v0.0.4(1y ago)1121MITPHPPHP &gt;=7.4

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yagasx/yii2-debug4mongo)[ Packagist](https://packagist.org/packages/yagas/yii2-debug4mongo)[ RSS](/packages/yagas-yii2-debug4mongo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yagasx/yii2-debug4mongo)

Yii 2 Debug For MongoDB
=======================

[](#yii-2-debug-for-mongodb)

本项目为yii2-debug的扩展，使用MongoDB对debug数据进行存储。

目录结构
----

[](#目录结构)

```
  src/                 代码目录
  src/models/          数据模型
  src/views/           视图文件
  src/controllers/     控制器

```

安装依赖
----

[](#安装依赖)

- PHP支持&gt;=5.4
- yii2-mongodb
- yii2-debug支持&gt;=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)
    ];
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

684d ago

PHP version history (2 changes)v0.0.1PHP &gt;=5.4

v0.0.3PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/752f307f27f00a00c2069f0ad1746b3d6a127bdbbf7f43ba914a3b2669506924?d=identicon)[yagas](/maintainers/yagas)

---

Top Contributors

[![yagasx](https://avatars.githubusercontent.com/u/160577696?v=4)](https://github.com/yagasx "yagasx (8 commits)")

### Embed Badge

![Health badge](/badges/yagas-yii2-debug4mongo/health.svg)

```
[![Health](https://phpackages.com/badges/yagas-yii2-debug4mongo/health.svg)](https://phpackages.com/packages/yagas-yii2-debug4mongo)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M915](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
