graef685/zf-snap-php-debug-bar
Composer 安装命令:
composer require graef685/zf-snap-php-debug-bar
包简介
PHP Debug Bar module for Zend Framework 2
README 文档
README
PHP Debug Bar module for Zend Framework 2 & 3
Created by Witold Wasiczko
Features
- All PHP Debug Bar features + additional info about Zend Framework application:
- Log and debug directly to Debug Bar,
- Check request variables ($_POST, $_GET, $_SERVER, $_COOKIE),
- Use timeline to see time between common events,
- Catch exceptions,
- Preview config and application config,
- Profile SQL queries,
- Details about current route,
- Memory usage,
- Total request duration,
- Custom debug bar view,
- and more...!
- Ready to use - just install via
composer! - easy configurable via module config,
Installation
The preferred way to install this extension is through composer.
Either run
php composer require --dev snapshotpl/zf-snap-php-debug-bar
Usage
Add module ZfSnapPhpDebugBar to application.config.php.
return [ 'modules' => [ 'ZfSnapPhpDebugBar', ], ];
How to use Message tab
By function:
debugbar_log('ZfSnapPhpDebugBar is awesome!');
By static method:
ZfSnapPhpDebugBar\Module::log('ZfSnapPhpDebugBar is awesome!');
By Zend\Log:
$writer = $sm->get(ZfSnapPhpDebugBar\Log\Writer\PhpDebugBar::class); $log = new Zend\Log\Logger(); $log->addWriter($writer); $log->info('ZfSnapPhpDebugBar is awesome!');
Directly by DebugBar object from ServiceManager:
$debugbar = $sm->get('debugbar'); $debugbar['messages']->addMessage('ZfSnapPhpDebugBar is awesome!'));
How to config
Look at config/zfsnapphpdebugbar.config.php file
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-08-05
