jvitasek/dumpanddie
最新稳定版本:1.3
Composer 安装命令:
composer require jvitasek/dumpanddie
包简介
Dump and die (dd) as known in Laravel for Tracy (Nette Framework debugger).
关键字:
README 文档
README
dd() is a function in Laravel used to dump one or more variables and die. This is the implementation supporting this functionality in the Tracy Panel (from Nette Framework debugger).
Installation
The best way to install jvitasek/DumpAndDie is using Composer:
$ composer require jvitasek/dumpanddie
Usage in browser
<?php declare(strict_types = 1); use Nette\Application\UI\Presenter; final class TestPresenter extends Presenter { public function actionDefault(): void { $price = 42; $filename = sha1((string) ($price + time())) . '.log'; // write this dd($price, $filename); // instead of this \Tracy\Debugger::barDump($price); \Tracy\Debugger::barDump($filename); die(1); } }
Usage in CLI
<?php declare(strict_types = 1); use Tracy\Debugger; require __DIR__ . '/../vendor/autoload.php'; Debugger::enable(Debugger::DEVELOPMENT); $price = 42; $filename = sha1((string) ($price + time())) . '.log'; dd($price, $filename);
统计信息
- 总下载量: 1.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-06