PHPackages                             epilgrim/modify-request-headers-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. epilgrim/modify-request-headers-bundle

ActiveSymfony-bundle

epilgrim/modify-request-headers-bundle
======================================

Symfony bundle to inject request headers

v0.1.7(12y ago)0109MITPHP &gt;=5.3.2

Since Apr 17Compare

[ Source](https://github.com/Epilgrim/ModifyRequestHeadersBundle)[ Packagist](https://packagist.org/packages/epilgrim/modify-request-headers-bundle)[ Docs](http://github.com/Epilgrim/ModifyRequestHeadersBundle)[ RSS](/packages/epilgrim-modify-request-headers-bundle/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

ModifyRequestHeadersBundle
==========================

[](#modifyrequestheadersbundle)

This bundle allows to add arbitrary request headers to the Request object.

The use case that forced me to develop it, was because my application is behind a reverse proxy, wich is not setting the headers x-forwarded-proto. Thus, links sended by mail had an incorrect protocol.

Features include:

- Set the custom headers
- Set the priority we want the listener to run when the kernel event.

[![Build Status](https://camo.githubusercontent.com/6d5998c41c2fe2cc599b669c821dfa0731a1b3aadf5d6a3bc3b00cf5e930fcc1/68747470733a2f2f7472617669732d63692e6f72672f4570696c6772696d2f4d6f64696679526571756573744865616465727342756e646c652e706e67)](https://travis-ci.org/Epilgrim/ModifyRequestHeadersBundle)

Installation
------------

[](#installation)

1. Download EpilgrimModifyRequestHeadersBundle using composer
2. Enable the Bundle
3. Configure your application's config.yml

### Step 1: Download EpilgrimModifyRequestHeadersBundle using composer

[](#step-1-download-epilgrimmodifyrequestheadersbundle-using-composer)

Add EpilgrimModifyRequestHeadersBundle in your composer.json:

```
{
    "require": {
        "epilgrim/modify-request-headers-bundle": "*"
    }
}
```

And then run

```
$ php composer.phar update
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
