Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silexphp/Silex-WebProfiler
https://github.com/silexphp/Silex-WebProfiler
php silex silex-provider
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/silexphp/Silex-WebProfiler
- Owner: silexphp
- License: mit
- Archived: true
- Created: 2013-02-07T11:44:20.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T12:22:10.000Z (over 6 years ago)
- Last Synced: 2024-06-18T10:57:54.397Z (5 months ago)
- Topics: php, silex, silex-provider
- Language: PHP
- Size: 106 KB
- Stars: 210
- Watchers: 16
- Forks: 61
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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... note::
If you are using the 1.x Silex version, read the `specific documentation
`_.To install this library, run the command below and you will get the latest
version:.. code-block:: bash
composer require 'silex/web-profiler:^2.0'
And enable it in your application:
.. code-block:: php
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:.. code-block:: php
$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.