sietseveenman/kirby3-toilet
最新稳定版本:1.0.5
Composer 安装命令:
composer require sietseveenman/kirby3-toilet
包简介
The place for all your dumps
README 文档
README
Dump without stopping your thread or template rendering. Instead your dumps will go straight to the new Toilet panel area. There you can inspect them and flush when you are done debugging. Don't forget to wash your hands!
Notes
This project was inspired by Spatie's Ray and Laravel's Telescope. It borrows some of Telescope's code to trigger the interactive bits of the dumps on the panel area.
🚧 Warning: This project was created in a couple of days, It hasn't been tested much. Use at your own risk!
Installation
With Composer
composer require sietseveenman/kirby3-toilet
Usage
Use the poop() method anywhere.
$articles = $page->children(); poop( $articles );
poop() returns the passed variable so you can chain methods and keep your code running.
foreach( poop($articles), $item) { <a href="<?= $item->url() ?>"><?= $item->title() ?></a> } poop($payment)->isSuccessful()->doStuff();
Config
// site/config.php return [ 'sietseveenman.kirby3-toilet' => [ // Customize the timeout duration for loading fresh dumps. // Default = 2000 'poop-timeout' => 500, // Dump in silence if you want to. // Default = false 'muted' => true, // Set permission for user roles to use the toilet. // Default = ['admin'] 'roles' => ['developer', 'vegan'], ], ];
统计信息
- 总下载量: 6.58k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-09
