Skip to content
This repository has been archived by the owner on Nov 24, 2019. It is now read-only.

RafalFilipek/ProfilerServiceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Profiler Service Provider

Profier Service Provider is something like Profiler in Symfony :) Not so powerfull but still alows you to inspect informations about Request, Response, Viewetc.

Installation (clone)

cd /path/to/your/project
git clone git://github.com/RafalFilipek/ProfilerServiceProvider.git vendor/rafal/src/Rafal/ProfilerServiceProvider

Installation (submodule)

cd /path/to/your/project
git submodule add git://github.com/RafalFilipek/ProfilerServiceProvider.git vendor/rafal/src/Rafal/ProfilerServiceProvider

Registering

$app['autoloader']->registerNamespace('Rafal', __DIR__.'/vendor/rafal/src');
$app->register(new Rafal\ProfilerServiceProvider\ProfilerServiceProvider(), array(
    'profiler.data_url' => '__fetch_profiler_data',
    'profiler.cookie_name' => 'webprofiler'
));

Options

  • profiler.data_url - internal service url. Just make sure that its not in collision with your other routes. Default __fetch_profiler_data.
  • profiler.cookie_name - in this cookie profiler will store data between requests. Just make sure that its not in collision with your other cookies. Default webprofiler.

Example

First register servide in your app.

$app['autoloader']->registerNamespace('Rafal', __DIR__.'/vendor/rafal/src');
$app->register(new Rafal\ProfilerServiceProvider\ProfilerServiceProvider());

Now you can add in your layout before <\body>

{{ profiler() }}    

You should see little box with alpha sign - just click it.

Example output

Example

License

Profiler Service Provider is licensed under the MIT license.

Releases

No releases published

Packages

No packages published

Languages