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

Bff Proxy Bundle Laravel Package

danielburger1337/bff-proxy-bundle

View on GitHub
Deep Wiki
Context7

PHPUnit PHPStan PHPCSFixer Packagist Version Packagist Downloads

danielburger1337/bff-proxy-bundle

A Symfony bundle that implements the proxy for the Backend for Frontends pattern.

The approach this bundle takes is one of composition. It does not provide all of the required functionality of the BFF pattern on its own. Mainly, the OAuth2 token management and authentication at the upstream service is not included in this bundle.

Installation

This library is PSR-4 compatible and can be installed via PHP's dependency manager Composer.

composer require danielburger1337/bff-proxy-bundle

Documentation

TODO

Configuration reference

# config/packages/bff_proxy.yaml
bff_proxy:
    # [Optional] Proxy requests to local API
    local_proxy: local # FALSE will disable feature
    # [Optional] Query parameter to configure runtime options of the proxy
    options_parameter: bff_proxy

    upstreams:
        first-upstream:
            http_client: "@psr18_client_implementation"
            request_factory: "@psr17_factory_implementation"
            stream_factory: "@psr17_factory_implementation"
            http_foundation_factory: "@psr7_to_httpfoundation_bridge"

            # Forward all headers that start with "X-" to the upstream
            passthrough_request_x_headers: false
            # Forward specific headers to the upstream
            passthrough_request_headers: ["my-custom-header"]

            # Proxy all headers that start with "X-" from the upstream to the client
            passthrough_response_x_headers: false
            # Proxy specific headers from the upstream to the client
            passthrough_response_headers: ["upstream-custom-header"]
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope