PHPackages                             baijunyao/laravel-print - 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. baijunyao/laravel-print

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

baijunyao/laravel-print
=======================

laravel print

v3.0.6(7y ago)1628.3k↓50%4[1 issues](https://github.com/baijunyao/laravel-print/issues)MITPHP

Since Nov 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/baijunyao/laravel-print)[ Packagist](https://packagist.org/packages/baijunyao/laravel-print)[ RSS](/packages/baijunyao-laravel-print/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (14)Used By (0)

### 介绍

[](#介绍)

laravel 中有个 `dump` 可以用来打印数据；
[![](https://camo.githubusercontent.com/aa955690772db1d411d4125d0e3bc2960a12de6ac4841e707a63c55748e78e79/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564316337633963372e6a7067)](https://camo.githubusercontent.com/aa955690772db1d411d4125d0e3bc2960a12de6ac4841e707a63c55748e78e79/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564316337633963372e6a7067)
但是也存在这很多的不便利；
咱一条一条来吐槽哈；
撒气爱子：

1. 打印出来的数据默认是折叠的；
    [![](https://camo.githubusercontent.com/991b72c2b2ea2d16f1286f00268f5992bdc77bc5ff6e0fcd1a16cc57a043d3f8/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564323733383039312e6a7067)](https://camo.githubusercontent.com/991b72c2b2ea2d16f1286f00268f5992bdc77bc5ff6e0fcd1a16cc57a043d3f8/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564323733383039312e6a7067)
    我打印数据果断是要看具体内容的；
    然鹅这还需要我们手动层层点开；
    想想也是心累；
2. 打印模型时展示了太多的属性；
    [![](https://camo.githubusercontent.com/56689f9ecb223573f39937f3046021bae2c015dad776d0c85a7fb81c07a604e2/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564333062656333332e6a7067)](https://camo.githubusercontent.com/56689f9ecb223573f39937f3046021bae2c015dad776d0c85a7fb81c07a604e2/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564333062656333332e6a7067)
    当我们一层一层的剥开它的心后；
    终于才能在 `attributes` 中找到我们想要的数据；
    那么多的属性堆在这；
    给的再多不如懂我；
    看看也是眼累；
3. chrome 调试 ajax 的时候不能正常展示打印的样式；

于是 laravel-print 横空出世；
无图言\* ；
[![](https://camo.githubusercontent.com/54498128ef36d9971b4224a7ebf3cc49a070eb19d2a1d4947a72cac4b95726ad/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564333962343230612e6a7067)](https://camo.githubusercontent.com/54498128ef36d9971b4224a7ebf3cc49a070eb19d2a1d4947a72cac4b95726ad/68747470733a2f2f6261696a756e79616f2e636f6d2f75706c6f6164732f61727469636c652f32303138303531332f356166383564333962343230612e6a7067)
默认以数组的形式展示数据；
默认展开数据；
调试面板下的 Network 中的 Preview 完美展示；

### 安装使用

[](#安装使用)

好了下面进入安装使用环节；

```
composer require baijunyao/laravel-print
```

需要打印的时候使用 `p($data)` 代替 `dump($data)`;
使用 `pd($data)` 代替 `dd($data)`;

### 文章

[](#文章)

[开源项目系列之laravel-print以简洁的方式打印数据](https://baijunyao.com/article/152)

链接
--

[](#链接)

- 博客：
- github：
- gitee：

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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 ~26 days

Recently: every ~62 days

Total

13

Last Release

2783d ago

Major Versions

v1.0.3 → v2.0.02018-01-19

v2.0.1 → v3.0.02018-01-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dce9e4e300389ca21c44f7c21fbaa18a2c7b58346f387c5c5498a515ea52846?d=identicon)[baijunyao](/maintainers/baijunyao)

---

Top Contributors

[![baijunyao](https://avatars.githubusercontent.com/u/9360694?v=4)](https://github.com/baijunyao "baijunyao (26 commits)")

---

Tags

dumplaravelprintlaraveldumpprint

### Embed Badge

![Health badge](/badges/baijunyao-laravel-print/health.svg)

```
[![Health](https://phpackages.com/badges/baijunyao-laravel-print/health.svg)](https://phpackages.com/packages/baijunyao-laravel-print)
```

###  Alternatives

[leeoniya/dump-r

a cleaner, leaner mix of print\_r() and var\_dump()

12368.1k5](/packages/leeoniya-dump-r)[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.

2214.4k](/packages/thehocinesaad-laravel-error-ai)

PHPackages © 2026

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