async/amp-sql-profiler-bundle
Amp\Postgres\PostgresConnectionPool).web-profiler-bundle v6|7).Amp\Sql\Pool via a factory pattern, requiring minimal code changes (replacing Pool with ProfiledPool in DI).dev in bundles.php).ProfiledPool ↔ Pool circularity (e.g., profiling PostgresConnectionPool directly).symfony/web-profiler-bundle:^6|^7; may require updates if upgrading Symfony major versions.amphp/sql:^2; ensure compatibility with your Amp stack.Amp\Loop::onTick) or third-party tools (e.g., Blackfire) suffice?test environments? (Readme recommends dev only.)ScriptFUSION) active? Low stars suggest low priority.Amp\Postgres\PostgresConnectionPool) without Doctrine.web-profiler-bundle:^6|^7).composer require --dev async/amp-sql-profiler-bundle
bundles.php (Symfony Flex auto-configures; manual add if needed):
ScriptFUSION\AmpSqlProfilerBundle\AmpSqlProfilerBundle::class => ['dev' => true],
Amp\Sql\Pool with ProfiledPool in services_dev.yaml:
ScriptFUSION\AmpSqlProfilerBundle\ProfiledPool:
arguments:
- '@Amp\Postgres\PostgresConnectionPool' # Specify concrete pool
Amp\Postgres\PostgresConnectionPool: ~
Amp\Sql\Pool implementation (e.g., PostgreSQL, MySQL).web-profiler-bundle (already present in most Symfony apps).test/prod environments.amphp/sql, symfony/web-profiler-bundle, and PHP 8.x compatibility.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Bundle breaks with Amp SQL update | Dev profiling fails | Pin amphp/sql version in composer.json |
| Symfony 8+ upgrade | Bundle incompatibility | Replace with alternative (e.g., custom logger) |
| Prepared statements used | SQL injection risks (unsupported) | Avoid dynamic SQL or use alternative tooling |
| Transaction savepoints used | Missing debug data | Manual logging or fork bundle |
| Circular dependency misconfiguration | Profiler fails to load | Test in staging before full rollout |
How can I help you explore Laravel packages today?