PHPackages                             rephp/rephp-debugbar - 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. rephp/rephp-debugbar

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

rephp/rephp-debugbar
====================

rephp debugbar

1.1.12(4y ago)0601Apache-2.0PHPPHP &gt;=5.4.0

Since Nov 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rephp/rephp-debugbar)[ Packagist](https://packagist.org/packages/rephp/rephp-debugbar)[ RSS](/packages/rephp-rephp-debugbar/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (1)

**rephp-debugbar**这是一款适合中国php程序员使用的debugbar。

主要分为数据收集接口和展示接口:

结构
==

[](#结构)

- 保存数据接口
    - 保存调试消息
        - msg级消息 - $debugbar-&gt;msg('信息记录');

    - log级消息 - $debugbar-&gt;log('信息记录');
    - error级消息 - $debugbar-&gt;error('信息记录');
    - info级消息 - $debugbar-&gt;info('信息记录');

    - 保存sql信息 - $debugbar-&gt;time('select \* from test\_table where id&lt;100', 0.03);
    - 保存计时信息 - $debugbar-&gt;time('test');
    - 保存事件消息 - $debugbar-&gt;event('test' , \['事件数据信息'\]);
    - 保存内存消息 - $debugbar-&gt;memery('test');
- 获取数据接口
    - 统一获取所有消息入口
        - 获取运行时间 - get::getTime($tagName)
        - 获取运行内存 - get::getMemory($tagName)
        - 获取调试消息,传参为空代表所有消息 - get::getMessageInfo($level='')
        - 获取sql信息 - get::getSqlInfo()
        - 获取事件消息 - get::getEventInfo()
        - 获取基本信息 - get::getBasicInfo()
        - 获取加载文件列表 - get::getFileInfo()

---

**展示接口**为唯一调用入口

**一、安装**

composer require "rephp/rephp-debugbar"

**二、使用**

1. 随时以同一名字请求计时，第一次请求自动保存记录，第二次请求则自动计算两同名请求之间运行时长 用法: $debugbar = new \\rephp\\debugbar\\debugbar(); $debugbar-&gt;time('test'); //... $debugbar-&gt;time('test'); print\_r( \\rephp\\debugbar\\logic\\get::getTime('test'));
2. 同理内存也是同样处理，即第一次请求保存请求记录内存状态，第二次请求则自动计算两同名请求之间运行内存变化。 用法： $debugbar = new \\rephp\\debugbar\\debugbar(); $debugbar-&gt;memery('test'); //... $debugbar-&gt;memery('test'); print\_r(\\rephp\\debugbar\\logic\\get::getMemory('test'));
3. sql信息接收 $debugbar = new \\rephp\\debugbar\\debugbar(); $debugbar-&gt;sql('select \* from test\_table where id&lt;100', 0.03); print\_r(\\rephp\\debugbar\\logic\\get::getSqlInfo('test'));
4. 事件信息接收 $debugbar = new \\rephp\\debugbar\\debugbar(); $debugbar-&gt;event('test', \['事件信息记录'\]); print\_r(\\rephp\\debugbar\\logic\\get::getEventInfo());
5. 调试信息接收 $debugbar = new \\rephp\\debugbar\\debugbar(); $debugbar-&gt;msg('信息记录'); $debugbar-&gt;log('信息记录'); $debugbar-&gt;error('信息记录'); $debugbar-&gt;info('信息记录'); print\_r(\\rephp\\debugbar\\logic\\get::getMessageInfo());

---

获取所有数据： $debugbar = new \\rephp\\debugbar\\debugbar(); $info = $debugbar-&gt;run();

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

1684d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78457739?v=4)[rephp](/maintainers/rephp)[@rephp](https://github.com/rephp)

---

Top Contributors

[![rephp](https://avatars.githubusercontent.com/u/78457739?v=4)](https://github.com/rephp "rephp (4 commits)")[![easyphplib](https://avatars.githubusercontent.com/u/76503702?v=4)](https://github.com/easyphplib "easyphplib (1 commits)")

### Embed Badge

![Health badge](/badges/rephp-rephp-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/rephp-rephp-debugbar/health.svg)](https://phpackages.com/packages/rephp-rephp-debugbar)
```

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.6k](/packages/spatie-craft-ray)

PHPackages © 2026

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