项目作者: idmarinas

项目描述 :
A Tracy panel for Twig Template Engine
高级语言: PHP
项目地址: git://github.com/idmarinas/tracy-twig-bar.git
创建时间: 2020-09-10T15:30:57Z
项目社区:https://github.com/idmarinas/tracy-twig-bar

开源协议:Other

下载




# 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

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

Usage

Somewhere, when your application starts and you initialize Twig engine

  1. use Idmarinas\TracyPanel\TwigBar;
  2. use Idmarinas\TracyPanel\Twig\TracyExtension;
  3. use Twig\Environment;
  4. use Twig\Extension\ProfilerExtension;
  5. use Twig\Profiler\Profile;
  6. // ...
  7. $profile = new Profile();
  8. $env = new Environment($loader, $options);
  9. $env->addExtension(new ProfilerExtension($profile));
  10. /**
  11. * Optional Twig Extension.
  12. *
  13. * Can use `dump`, `dumpe` and `bdump` functions of Tracy
  14. */
  15. $env->addExtension(new TracyExtension()); //-- Optional
  16. 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