Search by

encore-labs / guzzle-bundle-header-forward-plugin

TomCawthorn

Guzzle plugin that allow you to forward headers from your current request into the the guzzle one automatically. Forked to support Symfony 5.4, 6.4 and 7.x

Package info

github.com/EncoreLabs/GuzzleBundleHeaderForwardPlugin

pkg:composer/encore-labs/guzzle-bundle-header-forward-plugin

Statistics

Installs: 23 633

Dependents: 0

Suggesters: 0

Stars: 0

v4.2.0 2026-09-07 15:41 UTC

README

# Guzzle Bundle Header Forwarding Plugin

This plugin integrates a way to forward headers from the current symfony request into the cURL.

Requirements

Installation

Using composer:

composer.json
{
    "require": {
        "encore-labs/guzzle-bundle-header-forward-plugin": "^1.0"
    }
}
command line
$ composer require encore-labs/guzzle-bundle-header-forward-plugin

Usage

Enable bundle

# app/AppKernel.php

new EightPoints\Bundle\GuzzleBundle\EightPointsGuzzleBundle([
    new EncoreLabs\Bundle\GuzzleBundleHeaderForwardPlugin\GuzzleBundleHeaderForwardPlugin(),
])

Basic configuration

# app/config/config.yml

eight_points_guzzle:
    clients:
        api_payment:
            base_url: "http://api.domain.tld"

            # define headers, options

            # plugin settings
            plugin:
                header_forward:
                    enabled: true
                    headers:
                        - 'Accept-Language'