Download the PHP package silex/web-profiler without Composer
On this page you can find all versions of the php package silex/web-profiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silex/web-profiler
More information about silex/web-profiler
Files in silex/web-profiler
Package web-profiler
Short Description A WebProfiler for Silex
License MIT
Homepage http://silex.sensiolabs.org/
Informations about the package web-profiler
Silex Web Profiler
WARNING: Silex is in maintenance mode only. Ends of life is set to June 2018. Read more on Symfony's blog.
The Silex Web Profiler service provider allows you to use the wonderful Symfony web debug toolbar and the Symfony profiler in your Silex 2.x application.
If you are using the 1.x Silex version, read the specific documentation <https://github.com/silexphp/Silex-WebProfiler/tree/1.0>.
To install this library, run the command below and you will get the latest version:
composer require 'silex/web-profiler:^2.0'
And enable it in your application:
use Silex\Provider;
$app->register(new Provider\WebProfilerServiceProvider(), array(
'profiler.cache_dir' => __DIR__.'/../cache/profiler',
'profiler.mount_prefix' => '/_profiler', // this is the default
));
The provider depends on ServiceControllerServiceProvider
,
TwigServiceProvider
, and HttpFragmentServiceProvider
so you also need
to enable those if that's not already the case:
$app->register(new Provider\HttpFragmentServiceProvider());
$app->register(new Provider\ServiceControllerServiceProvider());
$app->register(new Provider\TwigServiceProvider());
If you are using FormServiceProvider
, the WebProfilerServiceProvider
will detect that and enable the corresponding panels.
Make sure to register all other required or used service providers before
WebProfilerServiceProvider
.
If you are using MonologServiceProvider
for logs, you must also add
symfony/monolog-bridge
as a Composer dependency to get the
logs in the profiler.
If you are using VarDumperServiceProvider
, add symfony/debug-bundle
as
a Composer dependency to display VarDumper dumps in the toolbar and the
profiler.
If you are using symfony/security
, add symfony/security-bundle
as
a Composer dependency to display Security related information in the toolbar
and the profiler.
All versions of web-profiler with dependencies
symfony/web-profiler-bundle Version ^2.8|^3.0
symfony/twig-bundle Version ^2.8|^3.0
symfony/twig-bridge Version ^2.8|^3.0
symfony/stopwatch Version ^2.8|^3.0