Download the PHP package mremi/templating-extra-bundle without Composer
On this page you can find all versions of the php package mremi/templating-extra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mremi/templating-extra-bundle
More information about mremi/templating-extra-bundle
Files in mremi/templating-extra-bundle
Package templating-extra-bundle
Short Description Profiles all the rendered templates (Twig or PHP) during a Symfony2 page rendering
License MIT
Homepage https://github.com/mremi/TemplatingExtraBundle
Informations about the package templating-extra-bundle
MremiTemplatingExtraBundle
This bundle profiles all the rendered templates (Twig or PHP) during a Symfony2
page rendering. This only includes templates which are rendered by render
and
renderResponse
through the templating service (for instance, include
and
embed
Twig tags are not tracked).
License
This bundle is available under the MIT license.
Prerequisites
This version of the bundle requires Symfony 2.1+.
Basic Docs
- Installation
- Profiler
- Contribution
Installation
Installation is a quick 2 step process:
- Download MremiTemplatingExtraBundle using composer
- Enable the Bundle
Step 1: Download MremiTemplatingExtraBundle using composer
Add MremiTemplatingExtraBundle in your composer.json:
Now tell composer to download the bundle by running the command:
Composer will install the bundle to your project's vendor/mremi
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
Profiler
If your are in debug mode (see your front controller), you can check in the web debug toolbar the rendered templates and some statistics from the current HTTP request: number of templates, consumed memory, request duration...
It's very easy to know which templates consume just looking at the colors (red and yellow).
Moreover, you can see all parameters passed to each template. This can be useful for the front office development.
If you configured the framework bundle
(or xdebug.file_link_format
), you can edit templates just by clicking on name.
Contribution
Any question or feedback? Open an issue and I will try to reply quickly.
A feature is missing here? Feel free to create a pull request to solve it!
I hope this has been useful and has helped you. If so, share it and recommend it! :)