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

IDMarinas Twig Tracy Bar

GitHub release GitHub Release Date

Add Twig template info in the Tracy debugger bar.


Test Suite Quality Gate Status Coverage Technical Debt


Github commits (since latest release) GitHub commit activity GitHub last commit

Code analysis

Reliability Rating Bugs Security Rating Vulnerabilities Maintainability Rating Code Smells Duplicated Lines (%)

๐Ÿ–– Support

๐Ÿฉต If you like this project, give it a ๐ŸŒŸ and share it with your friends!

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


Installation

Composer

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

Usage

Somewhere, when your application starts 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);

๐Ÿ–ฑ๏ธ Tech used in code

GitHub code size in bytes PHP

๐Ÿ› ๏ธ Tools used to create this project

Dependabot GitHub Actions Docker Composer

๐Ÿ’ฌ Social

X Discord

  • 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

Componette Componette felix@nette.org