Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Profiler Pack

Profiler Pack Laravel Package

symfony/profiler-pack

Symfony Profiler Pack integrates the Symfony Profiler and Web Debug Toolbar into your app, giving detailed request/response insights, performance metrics, logs, and debugging panels. Ideal for local dev and troubleshooting during development.

View on GitHub
Deep Wiki
Context7

A Symfony Pack for Symfony profiler

Frequently asked questions about Profiler Pack
Can I use Symfony Profiler Pack directly in a Laravel app without Symfony?
No, this package is designed for Symfony applications. For Laravel, you’d need to integrate it via a microservice API, middleware proxy, or shared database backend. Laravel already has alternatives like Debugbar or Telescope, which are more natively compatible.
What Laravel versions support Symfony Profiler Pack integration?
Laravel version compatibility isn’t a direct constraint, but Symfony Profiler Pack requires Symfony 4.4+. Integration depends on your chosen approach—API-based solutions work with any Laravel version, while middleware/database methods may need custom adapters for Laravel’s DI container.
How do I install Symfony Profiler Pack in a Laravel project?
You can’t install it directly in Laravel via Composer. Instead, add it to a Symfony microservice or standalone app (e.g., `composer require symfony/profiler-pack`). Then, expose profiler data via an API or middleware for Laravel to consume. Use `--ignore-platform-reqs` if needed to bypass PHP version conflicts.
What specific debugging features does Symfony Profiler offer that Laravel lacks?
Symfony Profiler includes detailed panels for HTTP requests, database queries (with SQL execution time), routing, events, and Twig templates. Laravel’s Debugbar covers some of this, but Symfony’s Profiler is more granular for enterprise apps, especially those using Symfony components like Doctrine or HTTP Foundation.
Is Symfony Profiler Pack safe for production use in Laravel?
No, it’s primarily a development tool. If you integrate it via API or middleware, gate access behind `APP_DEBUG=true` or a feature flag. Profiler adds latency and shouldn’t run in production without strict controls, as it exposes sensitive request data.
How do I avoid dependency conflicts between Symfony and Laravel?
Use strict Composer constraints (e.g., `symfony/*:^5.0`) or isolate Symfony in a separate PHP process/Docker container. If sharing dependencies, test thoroughly—conflicts often arise with `symfony/http-foundation`, `symfony/routing`, or `symfony/var-dumper`. Consider using Laravel’s `replace` directive in `composer.json` for overlapping packages.
Can I use Symfony Profiler to monitor Laravel’s database queries?
Only if you route Laravel’s database queries through Symfony’s Doctrine or use a shared database backend. For example, configure Symfony Profiler to log queries to PostgreSQL/MySQL, then query those logs in Laravel. Alternatively, proxy requests through Symfony middleware to capture query data dynamically.
What’s the best way to integrate Symfony Profiler with Laravel for local development?
For local dev, deploy Symfony with Profiler in a separate Docker container or subdomain. Use Laravel’s HTTP client to fetch profiler data (e.g., `/_profiler/{token}`) and display it in a custom Blade view or Laravel Debugbar panel. This keeps environments clean and avoids dependency bloat.
Are there alternatives to Symfony Profiler Pack for Laravel?
Yes. For Laravel, consider **Laravel Debugbar** (lightweight, similar panels), **Laravel Telescope** (focused on logs/queries), or **Blackfire.io** (advanced profiling). If you need Symfony’s depth, **Symfony’s WebProfilerBundle** in a hybrid stack is the closest match, but it requires more setup.
How do I handle session data if Symfony Profiler is integrated via middleware?
Symfony Profiler relies on sessions to track requests. If using middleware, ensure Laravel’s session driver (e.g., file, database) is compatible with Symfony’s session storage. Alternatively, disable Profiler’s session dependency by configuring it to use cookies or tokens for request tracking in a hybrid setup.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi