grummfy/php-debugbar-continuousphp

为 PHP 调试器添加 continuousphp 构建的包信息

1.1.0 2017-01-05 13:40 UTC

This package is auto-updated.

Last update: 2024-08-28 18:23:06 UTC


README

continuousphp 添加包构建信息于 php debugbar

在 continuousphp 上,当您有一个包时,它会附带一个包含有趣值的漂亮的 json 文件 continuousphp.package。所以让我们在调试器中打印它们。

安装 & 配置

composer require --dev grummfy/php-debugbar-continuousphp

然后将它添加到您的调试器中

$debugbar->addCollector(new Grummfy\DebugBar\ContinuousphpCollector('path/to/continuousphp.package'));

与其他调试器的集成

在基于 php-debugbar 的任何条上,它都是一样的。

一个与 laravel 的示例

Debugbar::addCollector(new Grummfy\DebugBar\ContinuousphpCollector('path/to/continuousphp.package'));

我个人将它添加到 providers 目录下的 AppServiceProvider 中。

演示

要获取一个简单的演示,请转到演示目录并运行

composer install
php -S localhost:8080

在浏览器中打开 http://localhost:8080 .

您应该看到这个 Demo