boson-php/symfony-http-bridge
Bridge package connecting Boson PHP with Symfony HttpFoundation, providing adapters to translate requests and responses between the two ecosystems for smoother interoperability when mixing Boson components with Symfony-based HTTP handling.
HttpClient, Response) into existing Laravel codebases.HttpFoundation components.HttpClient for async processing).HttpClient, StreamedResponse) but prefers Laravel’s ecosystem.HttpFoundation types).For Executives: "This package lets us reuse Symfony’s robust HTTP tools (like its HTTP client) in Laravel apps without rewriting or duplicating code. It’s a low-risk way to standardize how our services talk to each other—saving dev time and reducing bugs. Think of it as ‘Lego blocks’ for HTTP: we only pay for what we need, and it plays nice with our existing Laravel stack."
For Engineering:
*"The symfony-http-bridge gives us access to Symfony’s HttpClient, Response, and StreamedResponse in Laravel, with zero framework bloat. Key wins:
HttpClient for retries, middleware, and async requests.HttpFoundation components.
Tradeoff: Minimal learning curve if your team knows Symfony’s HTTP stack. For pure Laravel, this is overkill—but if we’re mixing stacks, it’s a no-brainer for consistency."*For Developers:
*"Need to send a request from Laravel to a Symfony service? Or mock a response in tests? This package lets you use Symfony’s HttpClient or Response objects directly in Laravel. Example:
use Symfony\Component\HttpFoundation\Response;
use Boson\SymfonyHttpBridge\SymfonyHttpBridge;
// Convert Laravel response to Symfony Response
$symfonyResponse = SymfonyHttpBridge::toSymfonyResponse($laravelResponse);
It’s like a translator between Laravel’s Illuminate\Http and Symfony’s HttpFoundation."*
How can I help you explore Laravel packages today?