filisko/debugbar-redbean
Composer 安装命令:
composer require filisko/debugbar-redbean
包简介
RedBeanPHP Collector for Debugbar
关键字:
README 文档
README
Result
Installation and configuration
Install it via composer:
composer require filisko/debugbar-redbean`
To make this work you must enable RedBean's debug mode to log your queries. You can simply use RedBean's Facade debug() method.
How to use
To use this logger with any application, you could basically do something like that:
R::setup('mysql:host=hostname;dbname=db', 'username', 'password'); /* Possible log modes: ------------------- 0 Log and write to STDOUT classic style (default) 1 Log only, class style 2 Log and write to STDOUT fancy style 3 Log only, fancy style (it works nicely with this one) */ R::debug(true, 3); // ... your queries here ... // Get RedBean's Logger $logger = R::getLogger(); $debugbar = new \DebugBar\StandardDebugBar(); $debugbar->addCollector(new \Filisko\DebugBar\DataCollector\RedBeanCollector($logger));
If you realized that RedBean puts at the end of your SQL queries something like '--keep-cache' for internal caching purposes and you want to hide this part from the logger, you could simply use a static flag to disable it:
\Filisko\DebugBar\DataCollector\RedBeanCollector::$showKeepCache = false; // That's all!
Suggestions, ideas, etc.
If you have suggestions, ideas or anything else, just write me an email (filisfutsarov[at]gmail.com) or create an issue in this repository.
filisko/debugbar-redbean 适用场景与选型建议
filisko/debugbar-redbean 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.4k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2016 年 04 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「collector」 「debugbar」 「redbean」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 filisko/debugbar-redbean 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 filisko/debugbar-redbean 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 filisko/debugbar-redbean 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A fork of runcmf/runtracy
DebugBar integration for Winter CMS.
Monolog bridge for PHP Debugbar
Single XHProf collector use XHProf API
Addon for catching e-mails in Nette FW to filesystem and showing it in the Debug Bar.
SilverStripe Garbage Collector module
统计信息
- 总下载量: 4.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 23
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-19