macfja / tracy-doctrine-sql
A Tracy panel for Doctrine SQL queries
Installs: 18 013
Dependents: 3
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Language:HTML
Requires
- doctrine/dbal: ~2
- doctrine/orm: ~2
- tracy/tracy: ~2
This package is auto-updated.
Last update: 2024-09-17 00:29:32 UTC
README
Add Sql requests made by Doctrine in the Tracy debugger bar.
Installation
Composer
composer require macfja/tracy-doctrine-sql
Usage
Somewhere, when your application start and you initialize Doctrine
use MacFJA\Tracy\DoctrineSql; use Doctrine\ORM\EntityManager; // ... $entityManager = EntityManager::create($conn, $config); DoctrineSql::init($entityManager);
Multiple Manager support
use MacFJA\Tracy\DoctrineSql; use Doctrine\ORM\EntityManager; // ... $blogManager = EntityManager::create($conn1, $config2); $configManager = EntityManager::create($conn2, $config2); DoctrineSql::init($blogManager, 'Blog'); DoctrineSql::init($configManager, 'Config');
Similar projects
- recca0120/Laravel-Tracy (Laravel specific - Eloquant)
- nextras/tracy-query-panel (Nette specific - DibiConnection, Nette\Database)
- Mikulas/nette-panel-queries (Nette specific - ElasticSearch, Neo4j)
- Zemistr/notorm-tracy-panel (NotORM)