PHPackages                             debugflow/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. debugflow/laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

debugflow/laravel
=================

Laravel driver for DebugFlow debugging tool

00PHP

Since Feb 3Pushed 3mo agoCompare

[ Source](https://github.com/Debug-Flow/laravel-driver)[ Packagist](https://packagist.org/packages/debugflow/laravel)[ RSS](/packages/debugflow-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://raw.githubusercontent.com/Debug-Flow/art/refs/heads/main/icon.svg)](https://github.com/Debug-Flow)

DebugFlow Laravel Driver
========================

[](#debugflow-laravel-driver)

Laravel driver for DebugFlow debugging tool.

Installation
------------

[](#installation)

```
composer require debugflow/laravel
```

Configuration
-------------

[](#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
-----

[](#usage)

### Using the Facade

[](#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

[](#using-helper-functions)

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

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

### Chainable Methods

[](#chainable-methods)

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

### Measure Performance

[](#measure-performance)

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

### Auto-Capturing

[](#auto-capturing)

Queries are automatically captured when `DEBUGFLOW_QUERIES=true`:

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

Available Methods
-----------------

[](#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
------

[](#colors)

- `red()`
- `orange()`
- `yellow()`
- `green()`
- `blue()`
- `purple()`
- `gray()`
- `pink()`

Sizes
-----

[](#sizes)

- `large()`
- `small()`

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 9.0+

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance54

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1209e551536746ac78a8a4b7f5a2cc13f776629484c441edc5d3f1a50edbea0?d=identicon)[AnandPilania](/maintainers/AnandPilania)

---

Top Contributors

[![AnandPilania](https://avatars.githubusercontent.com/u/14306728?v=4)](https://github.com/AnandPilania "AnandPilania (1 commits)")

### Embed Badge

![Health badge](/badges/debugflow-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/debugflow-laravel/health.svg)](https://phpackages.com/packages/debugflow-laravel)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
