2017 © Pedro Peláez
 

library anbu

The Anbu profiler for Laravel 4.

image

daylerees/anbu

The Anbu profiler for Laravel 4.

  • Saturday, September 20, 2014
  • by daylerees
  • Repository
  • 18 Watchers
  • 322 Stars
  • 4,843 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 12 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Codeship Status for daylerees/anbu, (*1)

Github Release Packagist License Packagist Downloads Github Issues Tips, (*2)

Anbu Profiler for Laravel PHP

Anbu Profiler, (*3)

Installation

You'll need to add the package to the require section of your Laravel app composer.json file:, (*4)

"daylerees/anbu": "~1.0@alpha"

First ensure that you have a database, and that it is configured with Laravel., (*5)

Next add the following service provider to app/config/app.php:, (*6)

'Anbu\ProfilerServiceProvider',

Next use the asset:publish command for Artisan to publish profiler asset files., (*7)

php artisan asset:publish

Finally, execute a page of your application and click on the Laravel icon in the lower left., (*8)

Timers

If you want to use Anbu timers, you'll need to include the Facade in the app/config/app.php file:, (*9)

'Anbu' => 'Anbu\Facades\Anbu',

Now you can create timers like this:, (*10)

Anbu::timers()->start('test');
sleep(30); // Do something interesting here.
Anbu::timers()->end('test', 'Completed doing something.');

Debug

When you use dd() you risk exposing information to the users of your application. Instead, use ad() to dump this data into the 'Debug' section of Anbu., (*11)

ad('foo');

Hide & Disable

First let me explain the two concepts., (*12)

To hide is to eliminate the Laravel icon button from requests, so that it won't interfere with certain content types., (*13)

To disable is to stop the profiler from storing the request, and displaying the button. Data for this request will be lost., (*14)

You can hide the profiler using:, (*15)

Anbu::hide();

Or you can apply the anbu.hide filter as a before filter to any route or route group., (*16)

You can disable the profiler using:, (*17)

Anbu::disable();

Or you can apply the anbu.disable filter as a before filter to any route or route group., (*18)

Problems?

If a new module is added, then you might get an error when rendering a previous request., (*19)

Here's some things you can try if you have any problems. First you can try updating Anbu with:, (*20)

composer update

Secondly you can clear the previous requests with the following Artisan command., (*21)

php artisan anbu:clear

Let me know about other issues!, (*22)

The Versions

20/09 2014

dev-master

9999999-dev

The Anbu profiler for Laravel 4.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel debug profiler anbu

13/09 2014

1.0.0-alpha1

1.0.0.0-alpha1

The Anbu profiler for Laravel 4.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel debug profiler anbu

12/09 2014

1.0.0-alpha

1.0.0.0-alpha

The Anbu profiler for Laravel 4.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel debug profiler anbu