Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guanguans/yii-var-dumper

Bringing the symfony/var-dumper to Yii. - 将 symfony/var-dumper 集成到 Yii。
https://github.com/guanguans/yii-var-dumper

debug dump dump-server dumper print server yii yii2

Last synced: 26 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# yii-var-dumper

![usage](./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://travis-ci.org/guanguans/yii-var-dumper.svg?branch=master)](https://travis-ci.org/guanguans/yii-var-dumper)
[![StyleCI](https://github.styleci.io/repos/299001049/shield?branch=master)](https://github.styleci.io/repos/299001049?branch=master)
[![Latest Stable Version](https://poser.pugx.org/guanguans/yii-var-dumper/v)](//packagist.org/packages/guanguans/yii-var-dumper)
[![Total Downloads](https://poser.pugx.org/guanguans/yii-var-dumper/downloads)](//packagist.org/packages/guanguans/yii-var-dumper)
[![License](https://poser.pugx.org/guanguans/yii-var-dumper/license)](//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

* Yii >= 2.0

## Installation

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

## Configuration

Config `config/main.php` file add:

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

## Usage

### Run `dumper/server`

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

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

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

### Dump your variate

```php