Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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。
- Host: GitHub
- URL: https://github.com/guanguans/yii-var-dumper
- Owner: guanguans
- License: mit
- Created: 2020-09-27T09:51:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-16T08:17:31.000Z (about 3 years ago)
- Last Synced: 2024-09-30T22:11:34.315Z (about 1 month ago)
- Topics: debug, dump, dump-server, dumper, print, server, yii, yii2
- Language: PHP
- Homepage:
- Size: 3.48 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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