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
, View
etc.
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. Defaultwebprofiler
.
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
License
Profiler Service Provider is licensed under the MIT license.