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 messagedump($content)- Dump variablequery($sql, $bindings, $time)- Log queryexception($exception)- Log exceptionmeasure($name, $callback)- Measure performancehttp($request, $response)- Log HTTPevent($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
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-03