orchestra/debug

Artisan Debug Profiler for Laravel

Installs: 12 831

Dependents: 1

Stars: 7

Watchers: 2

Forks: 1

Language: PHP

v3.1.0 2015-05-17 13:46 UTC

README

Join the chat at https://gitter.im/orchestral/platform/components

Debug Component is commandline profiling package for Laravel, It was based from Laravel 4.1 commandline profiling tool which was merged with php artisan tail.

Latest Stable Version Total Downloads MIT License Build Status Coverage Status Scrutinizer Quality Score

Table of Content

Version Compatibility

Laravel Debug 4.0.x 2.0.x 4.1.x 2.1.x 4.2.x 2.2.x 5.0.x 3.0.x 5.1.x 3.1.x 5.2.x 3.2.x@dev

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/debug": "~3.0"
    }
}

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/debug=~3.0"

Configuration

Add following service providers in config/app.php.

'providers' => [

    // ...

    Orchestra\Debug\DebugServiceProvider::class,
    Orchestra\Debug\CommandServiceProvider::class,
],

Aliases

You could also create an alias for Orchestra\Support\Facades\Profiler in config/app.php.

'aliases' => [

    // ...

    'Profiler' => Orchestra\Support\Facades\Profiler::class,
],

Usage

Enabling Profiler

To enable the profiler, all you need to do is:

Profiler::attachDebugger();

This normally would goes in your development environment such as local environment, in the case app/Providers/AppServiceProvider.php would be an ideal location to include the command.

Viewing the Profiler

To view the profiler, run the following command in your terminal:

php artisan debug

Resources