PHPackages                             idmarinas/tracy-twig-bar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. idmarinas/tracy-twig-bar

ActiveLibrary[Templating &amp; Views](/categories/templating)

idmarinas/tracy-twig-bar
========================

A Tracy panel for Twig Template Engine

0.4.0(9mo ago)414.8k↑20.8%2BSD-3-ClausePHPPHP ^7.4 | ^8.0CI passing

Since Sep 10Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/idmarinas/tracy-twig-bar)[ Packagist](https://packagist.org/packages/idmarinas/tracy-twig-bar)[ Fund](https://liberapay.com/idmarinas)[ RSS](/packages/idmarinas-tracy-twig-bar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (7)Used By (2)

IDMarinas Twig Tracy Bar
========================

[](#idmarinas-twig-tracy-bar)

[![GitHub release](https://camo.githubusercontent.com/60252fbce1664a525ee0e4b08214268d2b1625fda84d7cf2386f7c92f0920eea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/60252fbce1664a525ee0e4b08214268d2b1625fda84d7cf2386f7c92f0920eea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)[![GitHub Release Date](https://camo.githubusercontent.com/afe4099f3b37d6b9536293be4a1c75ef916b785f3586500883a1481c8e08286c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/afe4099f3b37d6b9536293be4a1c75ef916b785f3586500883a1481c8e08286c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)

> Add Twig template info in the **Tracy** debugger bar.

[![Test Suite](https://camo.githubusercontent.com/597944bb81a15cc1508a1ba967ba925486a985cf6b9cff2e1ccbbc0623f6792f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69646d6172696e61732f74726163792d747769672d6261722f7068702e796d6c3f6272616e63683d6d6173746572267374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465266c6162656c3d4c6f746764253230546573742532305375697465)](https://github.com/idmarinas/tracy-twig-bar/actions/workflows/php.yml)[![Quality Gate Status](https://camo.githubusercontent.com/4fb59a77c7bec9912bc0c16a4001232ab80238eb61ca11c48b0e984e8e6a0cb8/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f7175616c6974795f676174652f69646d6172696e61735f74726163792d747769672d6261722f6d61737465723f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666f722d7468652d6261646765266c6f676f3d736f6e6172636c6f7564266c6f676f436f6c6f723d7768697465)](https://sonarcloud.io/summary/new_code?id=idmarinas_tracy-twig-bar)[![Coverage](https://camo.githubusercontent.com/11da525bc7e5407ee9189b7c6281f5a55a5f4351187c177e965249f479c711a0/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f636f7665726167652f69646d6172696e61735f74726163792d747769672d6261722f6d61737465723f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666f722d7468652d6261646765266c6f676f3d736f6e6172636c6f7564266c6f676f436f6c6f723d7768697465)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Technical Debt](https://camo.githubusercontent.com/9301823d155cc0a2fb8753e65072f37fa26d54d89287928c093bde57300bbe7d/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f746563685f646562742f69646d6172696e61735f74726163792d747769672d6261722f6d61737465723f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666f722d7468652d6261646765266c6f676f3d736f6e6172636c6f7564266c6f676f436f6c6f723d7768697465)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)

[![Github commits (since latest release)](https://camo.githubusercontent.com/bf41a18436421eb506c4792a107cc94c7ecd2f786e7764960faaf75ee2b40a68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f69646d6172696e61732f74726163792d747769672d6261722f6c61746573742f6d61737465723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/bf41a18436421eb506c4792a107cc94c7ecd2f786e7764960faaf75ee2b40a68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d6974732d73696e63652f69646d6172696e61732f74726163792d747769672d6261722f6c61746573742f6d61737465723f7374796c653d666f722d7468652d6261646765)[![GitHub commit activity](https://camo.githubusercontent.com/15e0c3442f21d14c16d4fb3d847c46c89941645137b2d9038d1d14f89ad95614/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f772f69646d6172696e61732f74726163792d747769672d6261722f6d61737465723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/15e0c3442f21d14c16d4fb3d847c46c89941645137b2d9038d1d14f89ad95614/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f772f69646d6172696e61732f74726163792d747769672d6261722f6d61737465723f7374796c653d666f722d7468652d6261646765)[![GitHub last commit](https://camo.githubusercontent.com/21b141744b99e3643f52e790ae0cc3c1e66468faffb0de783af31def5b7f51e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f69646d6172696e61732f74726163792d747769672d6261722f6d61737465723f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/21b141744b99e3643f52e790ae0cc3c1e66468faffb0de783af31def5b7f51e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f69646d6172696e61732f74726163792d747769672d6261722f6d61737465723f7374796c653d666f722d7468652d6261646765)

#### Code analysis

[](#code-analysis)

[![Reliability Rating](https://camo.githubusercontent.com/5031362449cc29dbd840d84b74f1ea30277d80b50507e8a0c397b0e15f4399f9/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Bugs](https://camo.githubusercontent.com/894ea51c65f4740341222a86887b5a37fdbfdcaec3a4c4f4f4ddc609a2007aff/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Security Rating](https://camo.githubusercontent.com/7e681bdd8db342d49d16c06d1157dac396a0d5af3ae465ee40bed7ef46cdddea/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Vulnerabilities](https://camo.githubusercontent.com/6b7f4b2ce422504f8447735c301068fb3b9b64f906ce2a39ed5fc9ee850a4fc5/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Maintainability Rating](https://camo.githubusercontent.com/5d00a80710d9b275dbefde5901b1f32f876eb066359ba7b1f893a8eeaad7296b/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Code Smells](https://camo.githubusercontent.com/59800fcbefa9fbd408ebecc77da72203653957a917bfbaeb8f72bb0fd41c3e1e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)[![Duplicated Lines (%)](https://camo.githubusercontent.com/1e5911a79c4158b66dea227d265317c822becde3fdae61adc22dd7f7a57a7e45/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d69646d6172696e61735f74726163792d747769672d626172266272616e63683d6d6173746572266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=idmarinas_tracy-twig-bar)

> ## 🖖 Support
>
> [](#-support)
>
> 🩵 If you like this project, give it a 🌟 and share it with your friends!
>
> [![PayPal.Me - The safer, easier way to pay online!](https://camo.githubusercontent.com/d2e370ccd0eb7753d9dfe5cb325feb0cd7fa21732e60c1aadcd2234632d53ac3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d68656c705f6d795f70726f6a656374732d6666616132392e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d70617970616c2663616368655365636f6e64733d3836343030)](https://www.paypal.me/idmarinas)[![Liberapay - Donate](https://camo.githubusercontent.com/5fce3cf49749086af57e10ed30295a36809231cd15da5558efb24411651edd7e/68747470733a2f2f696d672e736869656c64732e696f2f6c69626572617061792f72656365697665732f49444d6172696e61732e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c69626572617061792663616368655365636f6e64733d3836343030)](https://liberapay.com/IDMarinas/donate)[![GitHub Sponsor](https://camo.githubusercontent.com/0a426232f312932729da79168b32bddc4dde752877cd5f0984f8904a3eebdc13/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d6561346161613f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/idmarinas)

[![](docs/bar.png)](docs/bar.png)

[![](docs/panel.png)](docs/panel.png)

Installation
------------

[](#installation)

### Composer

[](#composer)

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

Usage
-----

[](#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
--------------------

[](#️-tech-used-in-code)

[![GitHub code size in bytes](https://camo.githubusercontent.com/b3bd4c3dfc4c25fa974fdf1af1aae576f0ff038efb89dc76c1636b7e2b7b059f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/b3bd4c3dfc4c25fa974fdf1af1aae576f0ff038efb89dc76c1636b7e2b7b059f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f69646d6172696e61732f74726163792d747769672d6261722e7376673f7374796c653d666f722d7468652d6261646765)[![PHP](https://camo.githubusercontent.com/bbeaca4ecdd74d3fde840f711ebb8a5def2ff801187623f9bc365761b3b66f86/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2532333737374242342e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net)

🛠️ Tools used to create this project
------------------------------------

[](#️-tools-used-to-create-this-project)

[![Dependabot](https://camo.githubusercontent.com/295fa8fe26869215aa836584c0aea81eefe3384fdf9a71103d23f84b21829104/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e6461626f742d3032354538433f7374796c653d666f722d7468652d6261646765266c6f676f3d646570656e6461626f74266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/295fa8fe26869215aa836584c0aea81eefe3384fdf9a71103d23f84b21829104/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e6461626f742d3032354538433f7374796c653d666f722d7468652d6261646765266c6f676f3d646570656e6461626f74266c6f676f436f6c6f723d7768697465)[![GitHub Actions](https://camo.githubusercontent.com/9bcd4f4861422acabdd23854b1644aec39140ad63f4b3d6d1b26f271bcc51074/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f676974687562253230616374696f6e732d2532333236373145352e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562616374696f6e73266c6f676f436f6c6f723d7768697465)](https://github.com/features/actions)[![Docker](https://camo.githubusercontent.com/97af73d098e049bf2d11e027500814d62dd2c840ce11d1cb5270607ae9949b2f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f636b65722d2532333064623765642e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d646f636b6572266c6f676f436f6c6f723d7768697465)](https://www.docker.com)[![Composer](https://camo.githubusercontent.com/b87eb3375706dab8b0445656c1be7c2d0bdc9f6e7717189a2a1647de346f54d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d2532333863353533303f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6d706f736572266c6f676f436f6c6f723d7768697465)](https://getcomposer.org)

💬 Social
--------

[](#-social)

[![X](https://camo.githubusercontent.com/95b81aa75206a3d84029c9d00ee59a6fdf40bdb323c9a11ec22be53c2b53ce85/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547769747465722d2532333030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d58266c6f676f436f6c6f723d7768697465)](https://x.com/idmarinas)[![Discord](https://camo.githubusercontent.com/26133934d3c9deaf296f5af68252a2646ef6ff217eacb121a20e2c55898cc1a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446973636f72642d49444d6172696e61732d626c75653f6c6f676f3d646973636f7264267374796c653d666f722d7468652d6261646765266c6f676f436f6c6f723d7768697465)](https://discord.gg/FXEZqpF)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance57

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~357 days

Recently: every ~410 days

Total

6

Last Release

288d ago

PHP version history (5 changes)0.1.0PHP &gt;=7.2

0.1.2PHP ^7.2

0.3.0PHP ^7.2 | ^8.0

0.3.1PHP ^7.2 | ^8.0 | ^8.1

0.4.0PHP ^7.4 | ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/35842929?v=4)[IDMarinas](/maintainers/IDMarinas)[@idmarinas](https://github.com/idmarinas)

---

Top Contributors

[![idmarinas](https://avatars.githubusercontent.com/u/35842929?v=4)](https://github.com/idmarinas "idmarinas (31 commits)")

---

Tags

debuggerphpphp-libraryphp7tracytracy-debugger-paneltracy-paneltwigtwig-enginetwigdebuggerbartracypanel

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/idmarinas-tracy-twig-bar/health.svg)

```
[![Health](https://phpackages.com/badges/idmarinas-tracy-twig-bar/health.svg)](https://phpackages.com/packages/idmarinas-tracy-twig-bar)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91492.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36763.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

22046.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

22918.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21914.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
