PHPackages                             biohazard/laravel-console-debug - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. biohazard/laravel-console-debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

biohazard/laravel-console-debug
===============================

Show debug informations in console

00PHP

Since Apr 18Pushed 3y agoCompare

[ Source](https://github.com/biohazardhome/laravel-console-debug)[ Packagist](https://packagist.org/packages/biohazard/laravel-console-debug)[ RSS](/packages/biohazard-laravel-console-debug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Console Debug
=====================

[](#laravel-console-debug)

[![https://api.travis-ci.org/frostrain/laravel-console-debug.svg?branch=master](https://camo.githubusercontent.com/33f4db5cd527561915c5f404a29a9a4296e6a56c0d672938739c65a884c75848/68747470733a2f2f6170692e7472617669732d63692e6f72672f66726f73747261696e2f6c61726176656c2d636f6e736f6c652d64656275672e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/33f4db5cd527561915c5f404a29a9a4296e6a56c0d672938739c65a884c75848/68747470733a2f2f6170692e7472617669732d63692e6f72672f66726f73747261696e2f6c61726176656c2d636f6e736f6c652d64656275672e7376673f6272616e63683d6d6173746572)

[中文说明](README_cn.org)

Dependency
==========

[](#dependency)

- laravel 5-10 (for version 5 and higher laravel 10)
- [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) (laravel-debugbar itself dosen’t display debug messages in console)

Introduction
============

[](#introduction)

`composer require biohazard/laravel-console-debug`

This package can show laravel-debugbar’s debug messages and SQL queries in **console**.

For example, there have a `test` command

```
# if you dosen't use -v flag, it will not display debug messages
$ php artisan test
hello!

# with -v or more verbose flag, it will display debug messages
$ php artisan test -v
hello!

+-------+---------------------+
| level | debug message       |
+-------+---------------------+
| info  | 中文消息            |
+-------+---------------------+
| error | some error msg...   |
+-------+---------------------+
| debug | {#753               |
|       |   +"foo": "bar"     |
|       |   +"arr": array:2 [ |
|       |     0 => "foo"      |
|       |     1 => "bar"      |
|       |   ]                 |
|       | }                   |
+-------+---------------------+

+-------------------------------+----------+
| sql                           | duration |
+-------------------------------+----------+
| select * from `users` limit 1 | 9.77ms   |
+-------------------------------+----------+

+-------------+---------+
| Name        | Memory  |
+-------------+---------+
| Booting     | 17.47MB |
| Application | 8.77MB  |
+-------------+---------+
```

`Test` command’s example (this example require laravel 5.4+ to run, you need put these code in `routes/console.php`, for laravel 5.3 and below you can use `Command` class)

```
Artisan::command('test', function(){
    $this->line('hello!');

    $debugbar = app('debugbar');
    $debugbar->info('中文消息');
    $obj = new StdClass();
    $debugbar->error('some error msg...');
    $obj->foo = 'bar';
    $obj->arr = ['foo', 'bar'];
    debug($obj);

    \App\User::first();
});
```

Installation
============

[](#installation)

Install by composer:

```
composer require --dev frostrain/laravel-console-debug
```

Then add service in `config/app.php`.

```
'providers' => [
    // ...

    // Register laravel-debugbar's service first
    Barryvdh\Debugbar\ServiceProvider::class,
    Frostrain\Laravel\ConsoleDebug\ConsoleDebugServiceProvider::class,
]
```

Then you can use `-v` or more verbose flag to show debug messages

```
php artisan test -v
```

Configuration (optional)
========================

[](#configuration-optional)

You can publish config file:

```
php artisan vendor:publish --provider="Frostrain\Laravel\ConsoleDebug\ConsoleDebugServiceProvider"
```

then set you own configurations in `config/console_debug.php`.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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/6f9762eff14a022e794af6938b63b85ebdadb92de796d051db7a7a02ff0bde04?d=identicon)[magnetic](/maintainers/magnetic)

---

Top Contributors

[![frostrain](https://avatars.githubusercontent.com/u/13265386?v=4)](https://github.com/frostrain "frostrain (16 commits)")[![biohazardhome](https://avatars.githubusercontent.com/u/1502878?v=4)](https://github.com/biohazardhome "biohazardhome (4 commits)")

### Embed Badge

![Health badge](/badges/biohazard-laravel-console-debug/health.svg)

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

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