orchestra / debug
Artisan Debug Profiler for Laravel
Installs: 98 546
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/orchestra/debug
Requires
- php: >=5.6.0
- illuminate/console: ~5.4.0
- orchestra/support: ~3.4.0
- react/socket: 0.5.*
Requires (Dev)
- illuminate/container: ~5.4.0
- illuminate/database: ~5.4.0
- mockery/mockery: ~0.9.4
- monolog/monolog: ~1.11
- phpunit/phpunit: ~5.7
README
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.
Table of Content
Version Compatibility
| Laravel | Debug |
|---|---|
| 4.x.x | 2.x.x |
| 5.0.x | 3.0.x |
| 5.1.x | 3.1.x |
| 5.2.x | 3.2.x |
| 5.3.x | 3.3.x |
| 5.4.x | 3.4.x |
| 5.5.x | 3.5.x |
| 5.6.x | 3.6.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::start();
This normally would goes in your development environment such as
localenvironment, in the caseapp/Providers/AppServiceProvider.phpwould 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