idmarinas/tracy-twig-bar
最新稳定版本:0.4.0
Composer 安装命令:
composer require idmarinas/tracy-twig-bar
包简介
A Tracy panel for Twig Template Engine
关键字:
README 文档
README
IDMarinas Twig Tracy Bar
Add Twig template info in the Tracy debugger bar.
Code analysis
🖖 Support
🩵 If you like this project, give it a 🌟 and share it with your friends!
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
🛠️ Tools used to create this project
💬 Social
统计信息
- 总下载量: 13.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-09-10

