PHPackages                             php-debug/debugger - 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. [Framework](/categories/framework)
4. /
5. php-debug/debugger

ActivePhp-extension[Framework](/categories/framework)

php-debug/debugger
==================

The debugger for the wzphp framework

v0.1.0(7y ago)06.1k↓50%MITPHP

Since Feb 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yuncopy/debugger)[ Packagist](https://packagist.org/packages/php-debug/debugger)[ RSS](/packages/php-debug-debugger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

#### Debugger日志操作

[](#debugger日志操作)

> DEBUG\_LEVEL=0的时候不会在后端运行， DEBUG\_LEVEL=1的时候会记录错误、警告信息以及资源调用的耗时汇总统计， DEBUG\_LEVEL=2的时候，会记录全部的数据 如果在参数列表中出现 \_\_DEBUG\_LEVEL ，则会强制覆盖 DEBUG\_LEVEL 的值

> 功能列表如下： 1 time 性能探针，计算运行的步骤以及每一步的执行效率; 2 log 日志记录，把每一个日志信息记录下来; 3 http 接口调用的记录以及耗时的汇总统计; 4 redis redis调用的记录以及耗时的汇总统计; 5 mysql mysql调用的记录以及耗时的汇总统计; 6 cache memcache调用的记录以及耗时的汇总统计;

- 安装 `composer require php-debug/debugger`
- 初始化 `require(__DIR__ . '/../vendor/autoload.php');`
- 使用手册
    - 调用 `\Debugger\Debugger::_enable();`
    - 调试探针，初始化完成，页面开始执行`\Debugger\Debugger::_time(__FILE__.', start page');`
    - 访问：[http://localhost/?\_\_debug=自定义密钥值](http://localhost/?__debug=%E8%87%AA%E5%AE%9A%E4%B9%89%E5%AF%86%E9%92%A5%E5%80%BC)
    - MySQL调用

    ```
    $mtime1 = microtime();
        数据库连接操作...
    $mtime2 = microtime();
     \Debugger\Debugger::_mysql(
        'connect',   //标签
        [],   //额外参数，数组形式
        array('host' => $this->settings['host'], 'dbname' => $this->settings['dbname']), //主要参数输出
        $mtime1, $mtime2 // 开始时间 结束时间
     );

    ```

    - \_log、\_http、\_redis、\_cache同理
    - 将消息输出到指定的文件 `\Debugger\Debugger::writeDebugLog($content,$file)`
    - debug\_backtrace `\Debugger\Debugger::writeBacktrace()`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2645d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9abcce2fe84808f12cdbc63c277e565a2c53ce39374759fb313e873839c45bd6?d=identicon)[yuncopy](/maintainers/yuncopy)

---

Top Contributors

[![yuncopy](https://avatars.githubusercontent.com/u/11610932?v=4)](https://github.com/yuncopy "yuncopy (1 commits)")

---

Tags

frameworkredisdebuggerwzphp

### Embed Badge

![Health badge](/badges/php-debug-debugger/health.svg)

```
[![Health](https://phpackages.com/badges/php-debug-debugger/health.svg)](https://phpackages.com/packages/php-debug-debugger)
```

###  Alternatives

[lanin/laravel-api-debugger

Easily debug your JSON API.

2311.8M](/packages/lanin-laravel-api-debugger)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)[yiisoft/cache-redis

Yii Caching Library - Redis Handler

1012.9k](/packages/yiisoft-cache-redis)[mirekmarek/php-jet

PHP Jet is modern, powerful, real-life proven, really fast and secure, small and light-weight framework for PHP8 with great clean and flexible modular architecture containing awesome developing tools. No magic, just clean software engineering.

241.3k](/packages/mirekmarek-php-jet)

PHPackages © 2026

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