PHPackages                             nine/dd - 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. nine/dd

ActiveLibrary

nine/dd
=======

1.0.1(8y ago)18391[1 issues](https://github.com/nineyang/dd/issues)PHP

Since Sep 10Pushed 8y ago2 watchersCompare

[ Source](https://github.com/nineyang/dd)[ Packagist](https://packagist.org/packages/nine/dd)[ RSS](/packages/nine-dd/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

介绍
--

[](#介绍)

`Laravel`有一个非常方便的`dd`函数可以帮助我们更好的展示信息，不过输出对象时，没办法显示具体的类文件，也没有展示其方法。 但是`Laravel`的`dd`函数设计的毕竟复杂，所以我就自己写了一个这样的包。

安装
--

[](#安装)

1. composer 安装

```
composer require nine/dd

```

2. 直接下载 clone 下来即可。

使用
--

[](#使用)

1. 如我在[exapmle.php](/example.php)中所写，我们既可以直接使用:

```
\dd\Dump::dump('hello,nine');
```

同时也可以自己封装一个`dd`函数:

```
function dd($value)
{
    \dd\Dump::dump($value);
}

dd("hello,nine");
```

不管是哪种方式，他都会自动的识别我们的类型来予以不同的展示效果。

2. `decorator`是一个装饰器层，用来装饰我们的效果。他可以实现一层一层的包装，就像我们用`div`标签来包裹住`span`标签一样。
3. 此外，如果需要自己单独配置样式和新增装饰符号，可以在[conf](/src/conf)目录下根据所给的注释予以添加。

效果
--

[](#效果)

1. string

[![Aaron Swartz](/tmp/string.png)](/tmp/string.png)

2. array

[![Aaron Swartz](/tmp/array.png)](/tmp/array.png)

3. function

[![Aaron Swartz](/tmp/function.png)](/tmp/function.png)

4. object

[![Aaron Swartz](/tmp/object.png)](/tmp/object.png)

todo
----

[](#todo)

1\. object

2. 点击小三角的特效

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3489e053a14ee8e4369f419aec88071edbb4392b9aba46fb8be8f21b823001bd?d=identicon)[nineyang](/maintainers/nineyang)

---

Top Contributors

[![nineyang](https://avatars.githubusercontent.com/u/19544562?v=4)](https://github.com/nineyang "nineyang (28 commits)")

### Embed Badge

![Health badge](/badges/nine-dd/health.svg)

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

PHPackages © 2026

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