omouren/external-var-dumper-bundle
最新稳定版本:2.0.2
Composer 安装命令:
composer require omouren/external-var-dumper-bundle
包简介
Externalize Symfony VarDumper dumps
README 文档
README
The ExternalVarDumperBundle allows you to redirect Symfony dumps (VarDumper) to an external web service. Usefull to debug applications like REST APIs, background console commands or other applications that you don't have a direct output or that you can't break with a dump in the middle of the response.
Installation
Via Composer
$ composer require omouren/external-var-dumper-bundle
Register the bundle in the application kernel :
<?php // app/AppKernel.php // ... public function registerBundles() { $bundles = [ // ... new Omouren\ExternalVarDumperBundle\OmourenExternalVarDumperBundle(), // ... ]; // ...
Add configuration (optional) :
# app/config/config.yml debug: dump_destination: "tcp://dumper-viewer:8080" omouren_external_var_dumper: enabled: true
Usage
<?php // ... dump($var);
VarDumper Viewer
Viewer in Vue.js to catch and see your dumps : external-var-dumper-viewer
With Pre-built Docker image
# By default, internaly server use port 8080 $ docker run --rm -p 80:8080 -ti omouren/external-var-dumper-viewer:latest # You can override it with custom port by an environment variable $ docker run --rm -e "PORT=1337" -p 80:1337 -ti omouren/external-var-dumper-viewer:latest # Now go to http://localhost:80
统计信息
- 总下载量: 49.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-15
