• This repository has been archived on 10/Jun/2019
  • Stars
    star
    174
  • Rank 219,104 (Top 5 %)
  • Language
    PHP
  • License
    BSD 2-Clause "Sim...
  • Created almost 12 years ago
  • Updated over 10 years ago

Reviews

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

Repository Details

A PHP 5.3 profiler based off of Laravel 3's Anbu.

Profiler

A PHP 5.3 profiler based off of Laravel 3's Anbu. NOTE: this project is no longer being maintained. Please use Barry's debug bar instead.

Installation

Installing profiler is simple. First, you'll need to add the package to the require attribute of your composer.json file.

{
    "require": {
        "loic-sharma/profiler": "1.1.*"
    },
}

Installing Using Laravel 4

To enable te profiler in Laravel 4 you will need to register the Service Provider and the Facade.

  1. Add 'Profiler\ProfilerServiceProvider', to the list of service providers in app/config/app.php
  2. Add 'Profiler' => 'Profiler\Facades\Profiler', to the list of class aliases in app/config/app.php
  3. In console run php artisan config:publish loic-sharma/profiler

And voila! You can use the profiler.

Profiler::startTimer('testLogging');

// The profiler listens to Laravel's logger.
Log::info('Hello World!');
Log::notice('Some event occured.');

Profiler::endTimer('testLogging');

Installing For Your Own Project

Add the following to your code:

$logger = new Profiler\Logger\Logger;
$profiler = new Profiler\Profiler($logger);

You can now use the profiler to your heart's content.

$profiler->startTimer('testLogging');

$logger->debug($object);
$logger->info('Hello World!');
$logger->notice('Some event occurred.');
$logger->warning('Careful: some warning.');
$logger->error('Runtime error.');
$logger->critical('This needs to be fixed now!');
$logger->emergency('The website is down right now.');

$profiler->endTimer('testLogging');

echo $profiler;

Copyright and License

Profiler was written by Loic Sharma. Profiler is released under the 2-clause BSD License. See the LICENSE file for details.

Copyright 2012 Loic Sharma

More Repositories

1

BaGet

A lightweight NuGet and symbol server
C#
2,588
star
2

Messages

A Laravel Bundle for the Swiftmailer library
PHP
39
star
3

Pokemon

A Pokemon game written purely in Javascript
JavaScript
30
star
4

scaffold

Laravel Scaffolding
PHP
27
star
5

nuclear

Delete NuGet packages quickly
C#
23
star
6

nugs

The NuGet search CLI app
C#
22
star
7

Anvil

A PHP 5.3 CMS built on top of Laravel 4 and other composer components.
PHP
17
star
8

InterfaceGenerator

Automatically generate interfaces for your classes
C#
14
star
9

menu

An expressive HTML Generator to create menus.
PHP
7
star
10

nuget-mirror

Mirror all package metadata from nuget.org.
C#
7
star
11

Quiz

A simple open source Quiz program
PHP
7
star
12

Laravel-Blog

A short example on how to make a blog using Laravel
PHP
7
star
13

VM

A simple C++ Virtual Machine
C++
6
star
14

laravel-template

A Blade extension
PHP
6
star
15

Laravel-Profiler

A simple Laravel bundle for profiling based on PHP Quick Profiler
PHP
4
star
16

symbols

C#
3
star
17

NuGet.Quality

C#
3
star
18

dotnet-develop

A .NET Core interpreter
C#
3
star
19

Moji

A simple template parser
PHP
2
star
20

DistributedCatalogReader

A distributed and eventually consistent NuGet catalog reader.
C#
2
star
21

Waddle

Hot reload for C#
C#
2
star
22

flutter-changelog

Dart
2
star
23

laravel-directus

Directus - ported to a Laravel bundle
JavaScript
2
star
24

Interpreter

C++
1
star
25

pulumi-aspnet

C#
1
star
26

ApiFinder

C#
1
star
27

flutter_raw_multiview

C++
1
star
28

FindCommandLineApps

Find .NET Tools that depend on System.CommandLine
C#
1
star
29

chat

A simple chat client written in Javascript
JavaScript
1
star
30

butter

.NET Bridge to Flutter
Dart
1
star
31

flutter_windows_c

Demo app that uses Flutter Window's C APIs
C++
1
star
32

remote_hot_reload

C++
1
star