PHPackages                             frostrain/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. frostrain/laravel-console-debug

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

frostrain/laravel-console-debug
===============================

Show debug informations in console

0.2.0(8y ago)220.5k1[1 PRs](https://github.com/frostrain/laravel-console-debug/pulls)MITPHP

Since May 25Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (6)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 (5.0 - 5.5)
- [barryvdh/laravel-debugbar](https://github.com/barryvdh/laravel-debugbar) (laravel-debugbar itself dosen’t display debug messages in console)

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

[](#introduction)

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   |
+-------------------------------+----------+
```

`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

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~48 days

Total

5

Last Release

3080d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravel-5-packagelaravel-debugbarlaraveldebug

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k124.3M621](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

388283.0k3](/packages/recca0120-laravel-tracy)[lsrur/inspector

Laravel Inspector, debugging and profiling tools for Web Artisans

23441.1k](/packages/lsrur-inspector)[daylerees/anbu

The Anbu profiler for Laravel 4.

3054.9k](/packages/daylerees-anbu)[php-console/laravel-service-provider

Laravel service provider to handle PHP errors, dump variables, execute PHP code remotely in Google Chrome

7361.2k1](/packages/php-console-laravel-service-provider)

PHPackages © 2026

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