承接 datlechin/flarum-debugbar 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

datlechin/flarum-debugbar

最新稳定版本:v1.0.2

Composer 安装命令:

composer require datlechin/flarum-debugbar

包简介

Integrate Debugbar into Flarum for development debugging

README 文档

README

License Latest Stable Version Total Downloads

Integrates PHP Debugbar into Flarum 2.x, providing a powerful in-browser debug toolbar for development. Inspect SQL queries, events, routes, authentication, cache operations, mail, and more.

Warning: This is a development tool. Never enable debug mode on production sites.

Overview

Queries

Installation

composer require datlechin/flarum-debugbar:"*"

Enable the extension in the admin panel, then ensure debug is set to true in your config.php:

'debug' => true,

Publish debugbar assets (usually automatic, but can be done manually):

php flarum debugbar:publish

Features

Debugbar Tabs

Tab Description
Messages Log messages from the request lifecycle
Timeline Visual breakdown of request timing (forum, handler, API calls)
Exceptions PHP exceptions and errors
Flarum Framework version, PHP version, database/queue/cache/mail/session drivers
Queries All SQL queries with bindings and execution time
Route Matched route name, handler, HTTP method, parameters
Auth Current user, groups, authentication method, session info
API JSON:API resource, endpoint, includes, filters, pagination
Settings All Flarum settings grouped by extension (sensitive values masked)
Events All events fired during the request
Cache Cache hits, misses, writes, and deletes
Mail Emails sent/queued during the request
Extensions All enabled extensions with versions

Console Commands

php flarum debugbar:publish   # Publish/repair debugbar assets symlink
php flarum debugbar:clear     # Clear stored request history

For Extension Developers

Use DebugbarHelper to log messages and measure performance from your extension code:

use Datlechin\FlarumDebugbar\DebugbarHelper;

// Log messages
DebugbarHelper::info('Loading custom data');
DebugbarHelper::warning('Deprecated method called');
DebugbarHelper::error('Something went wrong');
DebugbarHelper::debug('Variable value: ' . $value);

// Measure execution time
DebugbarHelper::startMeasure('my-operation', 'My Heavy Operation');
// ... do work ...
DebugbarHelper::stopMeasure('my-operation');

// Add exceptions
DebugbarHelper::addException($e);

All methods are safe to call even when the debugbar is disabled, they silently no-op.

Links

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固