Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Oct 16, 2021
1 parent e8d4e6b commit f7f1be2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
[![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.
> 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
```bash
$ composer require guanguans/yii-var-dumper --dev -v
```

## Configuration

Config `config/main.php` file add:

``` php
```php
...
'bootstrap' => [
...
Expand All @@ -47,21 +47,21 @@ Config `config/main.php` file add:

### Run `dumper/server`

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

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

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

### Dump your variate

``` php
```php
<?php
dump($yourVariate);
```
Expand All @@ -74,7 +74,7 @@ dump($yourVariate);

## Testing

``` bash
```bash
$ composer test
```

Expand Down

0 comments on commit f7f1be2

Please sign in to comment.