定制 debugflow/laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

debugflow/laravel

Composer 安装命令:

composer require debugflow/laravel

包简介

Laravel driver for DebugFlow debugging tool

README 文档

README

DebugFlow Laravel Driver

Laravel driver for DebugFlow debugging tool.

Installation

composer require debugflow/laravel

Configuration

Publish the config file:

php artisan vendor:publish --tag=debugflow-config

Add to your .env:

DEBUGFLOW_ENABLED=true
DEBUGFLOW_HOST=localhost
DEBUGFLOW_PORT=23518
DEBUGFLOW_QUERIES=true
DEBUGFLOW_EXCEPTIONS=false

Usage

Using the Facade

use DebugFlow\Facades\DebugFlow;

DebugFlow::log('Hello from Laravel!');
DebugFlow::dump($user);
DebugFlow::query('SELECT * FROM users', []);
DebugFlow::exception($e);

Using Helper Functions

df('Quick debug');
df($user)->green()->label('User Data');

ray($data)->purple()->tag('api');

Chainable Methods

df($user)
    ->green()
    ->label('User Object')
    ->large()
    ->tag('user', 'important');

Measure Performance

$result = df()->measure('api-call', function() {
    return Http::get('https://api.example.com');
});

Auto-Capturing

Queries are automatically captured when DEBUGFLOW_QUERIES=true:

User::where('active', true)->get();

Available Methods

  • log($content) - Log message
  • dump($content) - Dump variable
  • query($sql, $bindings, $time) - Log query
  • exception($exception) - Log exception
  • measure($name, $callback) - Measure performance
  • http($request, $response) - Log HTTP
  • event($name, $payload) - Log event

Colors

  • red()
  • orange()
  • yellow()
  • green()
  • blue()
  • purple()
  • gray()
  • pink()

Sizes

  • large()
  • small()

Requirements

  • PHP 8.1+
  • Laravel 9.0+

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固