danielburger1337/bff-proxy-bundle
HttpFoundation, HttpClient, and DI container). Laravel integration would require:
symfony/http-foundation-bridge or symfony/http-client for PSR-18/PSR-17 compatibility.ContainerInterface features (e.g., autowiring, compiler passes). Workarounds:
Illuminate\Routing) differs from Symfony’s. The bundle’s LocalProxyService (for local API proxying) would need adaptation to Laravel’s route attributes or middleware.guzzlehttp/guzzle (PSR-18) and symfony/http-foundation (PSR-17 bridge).TODO in the README and absence of dependents/ecosystem adoption signal high uncertainty in usage patterns.passthrough_request_headers) may introduce security risks if misconfigured (e.g., leaking sensitive headers).HttpClient) that could fulfill the same need with lower risk?symfony/http-client) as a dependency?league/oauth2-client?Authorization headers)?symfony/http-client (PSR-18 HTTP client)symfony/http-foundation-bridge (PSR-17 factories)symfony/dependency-injection (for DI container compatibility)Illuminate\Http\Client (PSR-18) and build a custom proxy middleware.spatie/laravel-http-client for Symfony-like HTTP client integration.LocalProxyService would need to be replaced with Laravel middleware or a custom route handler that delegates to the proxy logic.BffProxyMiddleware that inspects routes and forwards requests to upstream services.symfony/http-client, symfony/http-foundation-bridge).HttpFoundation with Laravel’s Illuminate\Http\Request/Response.Route::middleware(BffProxyMiddleware::class)).league/oauth2-client or Laravel Sanctum/Passport).monolog) and metrics (e.g., prometheus/client-php) to track proxy performance.bff_proxy.yaml config would need to be mapped to Laravel’s config/bff_proxy.php.// config/bff_proxy.php
return [
'local_proxy' => env('BFF_LOCAL_PROXY', false),
'options_parameter' => 'bff_proxy',
'upstreams' => [
'first-upstream' => [
'http_client' => 'symfony.http_client',
'passthrough_request_headers' => ['x-custom-header'],
],
],
];
composer.json.symfony/http-client may conflict with Laravel’s guzzlehttp/guzzle.composer’s conflict-resolution or isolate dependencies in a separate package.How can I help you explore Laravel packages today?