Profier Service Provider is something like Profiler in Symfony :) Not so powerfull but still alows you to inspect informations about Request
, Response
, View
etc.
cd /path/to/your/project
git clone git://github.com/RafalFilipek/ProfilerServiceProvider.git vendor/rafal/src/Rafal/ProfilerServiceProvider
cd /path/to/your/project
git submodule add git://github.com/RafalFilipek/ProfilerServiceProvider.git vendor/rafal/src/Rafal/ProfilerServiceProvider
$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'
));
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
.
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.
Profiler Service Provider is licensed under the MIT license.