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
Subrequestextra Bundle

Subrequestextra Bundle Laravel Package

amp/subrequestextra-bundle

View on GitHub
Deep Wiki
Context7

A Symfony2 bundle to visually debug subrequests

Frequently asked questions about Subrequestextra Bundle
Can I use AmpSubrequestExtraBundle in Laravel for debugging Blade @include directives?
No, this bundle is designed for Symfony 2.x and won’t work in Laravel. Laravel’s Blade templating and request lifecycle differ fundamentally from Symfony’s Twig and HttpKernel. For Blade debugging, use Laravel Debugbar or Telescope instead.
How do I debug subrequests in Laravel, like Symfony’s AmpSubrequestExtraBundle?
Laravel lacks a direct equivalent, but you can track subrequests (e.g., Blade includes or HTTP client calls) using middleware, decorators, or packages like Laravel Debugbar. For Blade, log included views via custom directives; for HTTP calls, wrap Guzzle’s HttpClient with a decorator.
Will AmpSubrequestExtraBundle work with Laravel 10+ or modern PHP?
No, this bundle is tied to deprecated Symfony 2.x and won’t integrate with Laravel. Laravel’s architecture (Blade, middleware, service container) is incompatible with Symfony’s HttpKernel and Twig-based subrequests. Avoid migration risks entirely.
Can I replicate the visual subrequest toolbar in Laravel?
Yes, but not with this bundle. Use Laravel Debugbar or Telescope to create a similar UI for tracking subrequests. For custom solutions, build middleware to log Blade includes or HTTP client calls, then display them in a toolbar via JavaScript.
Does AmpSubrequestExtraBundle support debugging HTTP client calls in Laravel?
No, this bundle only works with Symfony’s Twig render tag. For Laravel’s Guzzle HttpClient, use middleware or a decorator pattern to log requests/responses. Alternatives like Laravel Debugbar can also capture HTTP activity.
Is there a performance impact if I use AmpSubrequestExtraBundle in Symfony?
Yes, Symfony bundles like this often add overhead by wrapping subrequests in debug containers. In production, disable it entirely via configuration. For Laravel, avoid this bundle—opt for lightweight middleware or logging instead.
How do I configure AmpSubrequestExtraBundle to ignore specific routes?
This bundle uses Symfony’s YAML config to exclude controllers (e.g., `ignore_controllers`). In Laravel, you’d need a custom solution, like middleware filtering routes or using Debugbar’s built-in route exclusion.
Are there Laravel alternatives to AmpSubrequestExtraBundle for debugging?
Yes. For Blade includes, use Laravel Debugbar or Telescope. For HTTP client calls, wrap Guzzle with a decorator. For broader debugging, consider custom middleware logging subrequests to Laravel’s log files or a database.
Can I port AmpSubrequestExtraBundle to Laravel?
Technically possible but impractical. The bundle relies on Symfony’s HttpKernel and Twig, which have no direct Laravel equivalents. Rewriting it would require significant effort to replicate subrequest tracking for Blade, HTTP clients, and middleware—far easier to build a custom solution.
Why does AmpSubrequestExtraBundle show empty responses differently?
The bundle visually distinguishes empty subrequest responses (e.g., Twig `{% render %}` returning nothing) to help debug rendering issues. In Laravel, Blade’s `@include` or `View::render()` behaves differently; use Debugbar or custom middleware to log similar edge cases.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware