PHPackages                             topthink/think-dumper - 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. topthink/think-dumper

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

topthink/think-dumper
=====================

Dumper extend for thinkphp

v1.0.7(1w ago)289.6k↑28.4%5Apache-2.0PHPPHP &gt;=8.0.2

Since Dec 1Pushed 1w ago2 watchersCompare

[ Source](https://github.com/top-think/think-dumper)[ Packagist](https://packagist.org/packages/topthink/think-dumper)[ RSS](/packages/topthink-think-dumper/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (6)Versions (9)Used By (5)

ThinkPHP 调试输出扩展
---------------

[](#thinkphp-调试输出扩展)

支持本地和远程调试输出

[![](https://private-user-images.githubusercontent.com/1111670/399565474-a9979d5a-2ac9-41b4-ad35-92e52858526a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODEwMTUzMjUsIm5iZiI6MTc4MTAxNTAyNSwicGF0aCI6Ii8xMTExNjcwLzM5OTU2NTQ3NC1hOTk3OWQ1YS0yYWM5LTQxYjQtYWQzNS05MmU1Mjg1ODUyNmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDYwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA2MDlUMTQyMzQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTY3Nzc4NzJlNWQzM2FiYzk1Y2E0MDlmOTBiYTIxMGFkZjk0OThiNzFmN2Q3YzhiODRhNDQwODNjZDkyYmI3NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.HQZ_07c1SWl3GcZO6Pfw2zoBW8saMmYvaPp8gvc0CLE)](https://private-user-images.githubusercontent.com/1111670/399565474-a9979d5a-2ac9-41b4-ad35-92e52858526a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODEwMTUzMjUsIm5iZiI6MTc4MTAxNTAyNSwicGF0aCI6Ii8xMTExNjcwLzM5OTU2NTQ3NC1hOTk3OWQ1YS0yYWM5LTQxYjQtYWQzNS05MmU1Mjg1ODUyNmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDYwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjA2MDlUMTQyMzQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTY3Nzc4NzJlNWQzM2FiYzk1Y2E0MDlmOTBiYTIxMGFkZjk0OThiNzFmN2Q3YzhiODRhNDQwODNjZDkyYmI3NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.HQZ_07c1SWl3GcZO6Pfw2zoBW8saMmYvaPp8gvc0CLE)

安装
--

[](#安装)

```
composer require topthink/think-dumper --dev

```

环境要求 `PHP8.0+`

调试
--

[](#调试)

打开浏览器访问

点击左侧菜单 生成令牌并复制令牌内容

修改`.env` 环境变量文件，增加

```
DUMPER_TOKEN = 令牌值

```

然后 在代码中使用助手函数输出变量调试

```
dump($var...)

```

调试内容会在  中显示

如果没有设置令牌或远程打印页面没有打开，则`dump`函数只会在本地输出调试内容

> 请放心，变量内容不会经过服务器，只会保存在本地浏览器，并且可以随时清除。

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance98

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~77 days

Recently: every ~126 days

Total

8

Last Release

12d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.3PHP &gt;=8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7422243107bba2d58c5682b69d1c405e66fa027df2f6202afc1bb0c55559a7b1?d=identicon)[yunwuxin](/maintainers/yunwuxin)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (10 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/topthink-think-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/topthink-think-dumper/health.svg)](https://phpackages.com/packages/topthink-think-dumper)
```

###  Alternatives

[symfony/debug-bundle

Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework

2.4k121.7M966](/packages/symfony-debug-bundle)[symfony/error-handler

Provides tools to manage errors and ease debugging PHP code

2.7k682.0M760](/packages/symfony-error-handler)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k26.7M61](/packages/php-debugbar-php-debugbar)[spatie/laravel-ignition

A beautiful error page for Laravel applications.

576155.2M535](/packages/spatie-laravel-ignition)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[spatie/ignition

A beautiful error page for PHP applications.

512156.2M79](/packages/spatie-ignition)

PHPackages © 2026

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