• Stars
    star
    308
  • Rank 135,712 (Top 3 %)
  • Language
    CSS
  • Created over 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Anbu profiler for the Laravel PHP Framework.

Codeship Status for daylerees/anbu

Github Release Packagist License Packagist Downloads Github Issues Tips

Anbu Profiler for Laravel PHP

Anbu Profiler

Installation

You'll need to add the package to the require section of your Laravel app composer.json file:

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

First ensure that you have a database, and that it is configured with Laravel.

Next add the following service provider to app/config/app.php:

'Anbu\ProfilerServiceProvider',

Next use the asset:publish command for Artisan to publish profiler asset files.

php artisan asset:publish

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

Timers

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

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

Now you can create timers like this:

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.

ad('foo');

Hide & Disable

First let me explain the two concepts.

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

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

You can hide the profiler using:

Anbu::hide();

Or you can apply the anbu.hide filter as a before filter to any route or route group.

You can disable the profiler using:

Anbu::disable();

Or you can apply the anbu.disable filter as a before filter to any route or route group.

Problems?

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

Here's some things you can try if you have any problems. First you can try updating Anbu with:

composer update

Secondly you can clear the previous requests with the following Artisan command.

php artisan anbu:clear

Let me know about other issues!

More Repositories

1

colour-schemes

Colour schemes for a variety of editors created by Dayle Rees.
HTML
9,319
star
2

scientist

A PHP experimentation library inspired by Github's own Scientist.
PHP
781
star
3

material-peacock

Peacock colour scheme optimized for the Material UI PHPStorm theme.
573
star
4

test-driven-development-example

An introduction to Test-Driven Development (TDD).
PHP
510
star
5

dependency-injection-example

An introduction to Dependency Injection.
PHP
419
star
6

laravel-website-configs

Webserver configuration files for Laravel 4.
336
star
7

sanitizer

Sanitize data using a number of mutation methods.
PHP
261
star
8

kurenai

Kurenai is a document with metadata parsing library for PHP.
PHP
152
star
9

laravel-resources

A list of resources for the Laravel framework.
65
star
10

laravel-vagrant

Vagrant configuration for Laravel 4.
Ruby
59
star
11

container-debug

Container debug command for Laravel four.
PHP
57
star
12

scientist-laravel

Allow the Scientist library to be used with the Laravel PHP framework.
PHP
54
star
13

default-github-templates

Default templates for contribution guide, issues, and pull requests.
41
star
14

blog-tutorial-code

The code that accompanies the blog tutorial chapter.
PHP
19
star
15

inversion-of-control-container-example

PHP
15
star
16

presenters

PHP
9
star
17

daylerees.github.io

CSS
7
star
18

container-example

Example code to accompany article @ https://daylerees.com/container-baking
PHP
5
star
19

rainglow-atom

300+ themes for Atom editor.
CSS
4
star
20

resume

Resume/CV for Dayle Rees.
HTML
4
star
21

anbu-agent

Agent for the Anbu profiler.
PHP
3
star
22

events-challenge

Go
2
star
23

brackets

320+ color themes for Adobe Brackets.
CSS
2
star
24

rainbow

Color scheme generation.
JavaScript
1
star
25

go-exercises

Just some Golang exercises
Go
1
star
26

json-rpc-foundation

Implementation of JSON-RPC protocol using Symfony HTTP Foundation.
PHP
1
star