PHPackages                             guanguans/yii-var-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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. guanguans/yii-var-dumper

ActiveYii[DevOps &amp; Deployment](/categories/devops)

guanguans/yii-var-dumper
========================

Bringing the symfony/var-dumper to Yii. - 将 symfony/var-dumper 带到 Yii。

v1.0.4(4y ago)8758MITPHP

Since Sep 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/guanguans/yii-var-dumper)[ Packagist](https://packagist.org/packages/guanguans/yii-var-dumper)[ Docs](https://github.com/guanguans/yii-var-dumper)[ Fund](https://www.guanguans.cn/images/wechat.jpeg)[ Patreon](https://www.patreon.com/guanguans)[ RSS](/packages/guanguans-yii-var-dumper/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (6)Used By (0)

yii-var-dumper
==============

[](#yii-var-dumper)

[![usage](./docs/usage.gif)](./docs/usage.gif)

[![CI](https://github.com/guanguans/yii-var-dumper/actions/workflows/ci.yml/badge.svg)](https://github.com/guanguans/yii-var-dumper/actions/workflows/ci.yml)[![Build Status](https://camo.githubusercontent.com/43937c8ba060b0efcd0e3557c66f4fe4c7ece8da45a796232f62d4deae5f2c26/68747470733a2f2f7472617669732d63692e6f72672f6775616e6775616e732f7969692d7661722d64756d7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/guanguans/yii-var-dumper)[![StyleCI](https://camo.githubusercontent.com/e88a78d09e8ef9117b63e7af33bdc2040c2fbdf5dd413a7829f700d188d411d5/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3239393030313034392f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/299001049?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/02099c31cd8d63921658a1d9a267866805e425e1b674f87d0d40ae3cc5733004/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d7661722d64756d7065722f76)](//packagist.org/packages/guanguans/yii-var-dumper)[![Total Downloads](https://camo.githubusercontent.com/52124589c962cf5eafedfce77838694400d9e322fdeff94159b9cba47e2f3362/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d7661722d64756d7065722f646f776e6c6f616473)](//packagist.org/packages/guanguans/yii-var-dumper)[![License](https://camo.githubusercontent.com/563da5da35cdf9fbccd1a0f2fe4163888ed59a40a8cef0fa7c6e389287ff3705/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f7969692d7661722d64756d7065722f6c6963656e7365)](//packagist.org/packages/guanguans/yii-var-dumper)

> Bringing the [symfony/var-dumper](https://symfony.com/components/VarDumper) to Yii - 将 [symfony/var-dumper](https://symfony.com/components/VarDumper) 集成到 Yii。

Requirement
-----------

[](#requirement)

- Yii &gt;= 2.0

Installation
------------

[](#installation)

```
$ composer require guanguans/yii-var-dumper --dev -v
```

Configuration
-------------

[](#configuration)

Config `config/main.php` file add:

```
...
'bootstrap' => [
    ...
    'dumper',
    ...
],
'modules' => [
    ...
    'dumper' => [
        'class' => 'Guanguans\YiiVarDumper\Module',
        // 'host' => 'tcp://127.0.0.1:9913',
    ],
    ...
],
...
```

Usage
-----

[](#usage)

### Run `dumper/server`

[](#run-dumperserver)

```
$ php yii dumper/server
```

### You can set the output format to HTML using the --format option:

[](#you-can-set-the-output-format-to-html-using-the---format-option)

```
$ php yii dumper/server --format=html > dump.html
# or
$ php yii dumper/server -f=html > dump.html
```

### Dump your variate

[](#dump-your-variate)

```
