Componette

Componette

idmarinas

idmarinas / tracy-twig-bar 0.1.0

A Tracy panel for Twig Template Engine

download-cloud-line composer require idmarinas/tracy-twig-bar

GitHub release GitHub Release Date GitHub code size in bytes Build in PHP

GitHub issues GitHub pull requests Github commits (since latest release) GitHub commit activity GitHub last commit

GitHub top language GitHub language count

Maintainability Code Climate technical debt

PayPal.Me - The safer, easier way to pay online! Liberapay - Donate Twitter

Twig Panel for Tracy

Add Twig template info in the Tracy debugger bar.

Installation

Composer

composer require --dev idmarinas/tracy-twig-bar

Usage

Somewhere, when your application start and you initialize Twig engine

use Idmarinas\TracyPanel\TwigBar;
use Twig\Environment;
use Twig\Extension\ProfilerExtension;
use Twig\Profiler\Profile;

// ...
$profile = new Profile();
$env = new Environment($loader, $options);
$env->addExtension(new ProfilerExtension($profile));

TwigBar::init($profile);
  • 0.1.0 0.1.0

    First release

bar-chart-fill

Statistics

download-cloud-fill
964
star-fill
2
bug-fill
0
flashlight-fill
172d
price-tag-2-line

Badges

guide-fill

Dependencies

php (^7.2)
twig/twig (^2.0 || ^3.0)
Componette Componette felix@nette.org