PHP DebugBar Bridge

Installation

composer require larafony/debugbar-php

Configuration

use Larafony\DebugBar\Php\ServiceProviders\PhpDebugBarServiceProvider;

$app->withServiceProviders([
PhpDebugBarServiceProvider::class
]);

Usage

The debug bar appears automatically at the bottom of pages in development mode. It shows:

Adding Messages

use Larafony\DebugBar\Php\DebugBar;

$debugbar = $container->get(DebugBar::class);

$debugbar->info('User logged in');
$debugbar->warning('Cache miss for key: users');
$debugbar->error('Payment failed');

// With context
$debugbar->debug('Query result', ['count' => 42]);

Features

Warning: Production Warning: Disable the debug bar in production to prevent exposing sensitive information. Set APP_DEBUG=false in your .env file.