Componette

Componette

idmarinas

idmarinas / tracy-twig-bar 0.3.1

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 Idmarinas\TracyPanel\Twig\TracyExtension;
use Twig\Environment;
use Twig\Extension\ProfilerExtension;
use Twig\Profiler\Profile;

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

/**
 * Optional Twig Extension.
 *
 * Can use `dump`, `dumpe` and `bdump` functions of Tracy
 */
$env->addExtension(new TracyExtension()); //-- Optional

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

    Add suport for PHP version 8.1 in composer.json

    Full Changelog: 0.3.0...0.3.1

  • 0.3.0 0.3.0

    Add suport for PHP versions 8.0 and 8.1

  • 0.2.0 0.2.0

    Added new Twig Extension

    Can use dump, dumpe and bdump of Tracy

  • 0.1.2 0.1.2

    Resolve problem with version of release and version in composer.json

  • 0.1.1 0.1.1

    Minor changes

  • 0.1.0 0.1.0

    First release

bar-chart-fill

Statistics

download-cloud-fill
5250
star-fill
4
bug-fill
0
flashlight-fill
2.3y
price-tag-2-line

Badges

guide-fill

Dependencies

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