- Can I use conserto/pomm-symfony-bridge with Symfony 7 or earlier?
- No, this package requires Symfony 8.x exclusively. If you're on Symfony 7 or earlier, you’ll need to upgrade to Symfony 8 or wait for a Symfony 7-compatible release of this package. The 6.0.0 release dropped support for older versions to align with Symfony’s LTS roadmap.
- How do I install conserto/pomm-symfony-bridge in a Symfony 8 project?
- Install it via Composer with `composer require conserto/pomm-symfony-bridge:^6.0`. However, note that it’s typically bundled with `conserto/pomm-bundle`, so check if that’s a better fit for your project. Ensure your `composer.json` also pins Symfony to `^8.0` and PHP to `^8.2`.
- Does this package work with Laravel?
- No, this package is specifically for Symfony 8. If you're using Laravel, consider `conserto/pomm-bundle` or other Laravel-compatible Pomm integrations. This bridge is designed for Symfony’s full-stack framework, including its HttpKernel and WebProfilerBundle.
- What PostgreSQL features does the Pomm profiler highlight?
- The profiler provides deep insights into PostgreSQL query execution, including parsing, planning, and execution times. It’s particularly useful for identifying slow queries, lock contention, or inefficient joins in complex PostgreSQL workloads. It integrates with Symfony’s WebProfiler for visualization.
- Will this package slow down my Symfony 8 application in production?
- Yes, profiling adds overhead. Disable it in production by setting `APP_ENV=prod` or using feature flags. Test in staging first to measure latency impact. The package is designed to be lightweight but still introduces some runtime cost for query analysis.
- Is there a way to use this with non-PostgreSQL databases?
- No, this package is tightly coupled with Pomm, which is a PostgreSQL ORM. If you’re using MySQL, SQLite, or other databases, this profiler won’t work. Pomm is PostgreSQL-specific, so the bridge inherits that limitation.
- How does this compare to Blackfire or Symfony’s built-in profiler?
- Unlike Blackfire or Symfony’s generic profiler, this package focuses specifically on Pomm’s PostgreSQL query execution. It provides Pomm-specific metrics like query parsing, planning, and execution details, which are harder to extract with general profilers. It’s ideal for teams already using Pomm for PostgreSQL.
- What PHP version is required for conserto/pomm-symfony-bridge 6.0?
- PHP 8.2 or higher is required due to Symfony 8’s mandate. If your environment uses PHP 8.1 or lower, you’ll need to upgrade PHP to use this package. This is a hard requirement and not configurable.
- Can I contribute to improving Symfony 7 support in this package?
- Yes, contributions are welcome. The maintainers have focused on Symfony 8 for now, but you can open issues or pull requests to discuss adding Symfony 7 compatibility. Start by checking the GitHub repository for existing discussions or the contribution guidelines.
- What’s the best way to test this package before full integration?
- Start with a proof-of-concept in a Symfony 8 dev environment. Install the package, configure it in `config/packages/pomm.yaml`, and instrument a high-complexity endpoint. Compare its query insights with existing tools like Blackfire or Symfony’s profiler. Monitor performance impact in staging before production.