guanguans / yii-var-dumper
Bringing the symfony/var-dumper to Yii. - 将 symfony/var-dumper 带到 Yii。
Fund package maintenance!
Patreon
www.guanguans.cn/images/wechat.jpeg
Installs: 383
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii
Requires
- symfony/var-dumper: ^5.0
- yiisoft/yii2: ~2.0
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.7
- friendsofphp/php-cs-fixer: ^2.16
- mockery/mockery: ^1.2
- phpunit/phpunit: ^7||^8
README
Bringing the symfony/var-dumper to Yii - 将 symfony/var-dumper 集成到 Yii。
Requirement
- Yii >= 2.0
Installation
$ composer require guanguans/yii-var-dumper --dev -v
Configuration
Config config/main.php
file add:
... 'bootstrap' => [ ... 'dumper', ... ], 'modules' => [ ... 'dumper' => [ 'class' => 'Guanguans\YiiVarDumper\Module', // 'host' => 'tcp://127.0.0.1:9913', ], ... ], ...
Usage
Run dumper/server
$ php yii dumper/server
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
<?php dump($yourVariate);
Output result
Testing
$ composer test
Related Links
- https://github.com/symfony/var-dumper, by symfony
- https://github.com/beyondcode/laravel-dump-server, by beyondcode