PHPackages                             sottosviluppo/http-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. [HTTP &amp; Networking](/categories/http)
4. /
5. sottosviluppo/http-headers-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

sottosviluppo/http-headers-bundle
=================================

Custom Response HTTP Headers definition for Symfony

v1.1.0(10y ago)016MITPHPPHP ^5.3.3|^7.0

Since Feb 18Pushed 5y agoCompare

[ Source](https://github.com/sottosviluppo/HTTPHeadersBundle)[ Packagist](https://packagist.org/packages/sottosviluppo/http-headers-bundle)[ Docs](https://github.com/mmoreram/http-headers-bundle)[ RSS](/packages/sottosviluppo-http-headers-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

[![Scrutinizer Quality Score](https://camo.githubusercontent.com/2be4588e22e6970977052555970a01f77c641b7935a05a4e31dfa4bd359714ec/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6d6f726572616d2f485454504865616465727342756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d66633638633632383737376264323264663339653263343866323662366332633862633335616433)](https://scrutinizer-ci.com/g/mmoreram/HTTPHeadersBundle/)[![SensioLabsInsight](https://camo.githubusercontent.com/e36dbbfb6802959cb2ba4a95929de191f2d4ae9e370f614692f3c6d308f5f893/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34663030643638302d613963342d343865312d623838372d6639363766646636333335632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4f00d680-a9c4-48e1-b887-f967fdf6335c)

Custom HTTP Headers for Symfony2
================================

[](#custom-http-headers-for-symfony2)

Installing [HttpHeadersBundle](https://github.com/mmoreram/http-headers-bundle)
-------------------------------------------------------------------------------

[](#installing-httpheadersbundle)

You have to add require line into you `composer.json` file

```
"require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*",
    ...
    "mmoreram/http-headers-bundle": "dev-master"
},

```

Then you have to use composer to update your project dependencies

```
php composer.phar update

```

And register the bundle in your appkernel.php file

```
return array(

    // ...
    new Mmoreram\HttpHeadersBundle\HttpHeadersBundle(),
    // ...
);

```

Configuring HttpHeaders Bundle
------------------------------

[](#configuring-httpheaders-bundle)

You can now configure as many HTTP Headers as you want for your project. You only have to give them a name and a set of values into your `config.yml` file

```
http_headers:
    response:
        x_jedi_newton:
            name: X-Jedi-Newton
            values:
                - I can calculate the motion of heavenly bodies, but not the madness of people
                - Errors are not in the art but in the artificers
                - It is the weight, not numbers of experiments that is to be regarded
        x_jedi:
            name: X-Jedi
            values:
                - Meet our team at humans.txt

```

This bundle will get a random quote in each request. If only one quote is defined, just this quote will be output.

Join X-Jedi
-----------

[](#join-x-jedi)

There is a project called X-Jedi, that encourages all development teams to add their own http-headers under the name of X-Jedi, with their most representative quotes. You can find more info in [X-Jedi Project](http://xjedi.org) webpage

[![Bitdeli Badge](https://camo.githubusercontent.com/f22245da7cd52105164ab737a963af3b687cae82cff7ebe638ee2634dda24ee3/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6d6d6f726572616d2f687474706865616465727362756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~638 days

Total

2

Last Release

3825d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.3

v1.1.0PHP ^5.3.3|^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8c49cb84fb9fb2e1579fe5dbf5fe05a4c54a36d14988e7eeab7856643146d90?d=identicon)[m.crotti@filcronet.it](/maintainers/m.crotti@filcronet.it)

---

Top Contributors

[![mmoreram](https://avatars.githubusercontent.com/u/521409?v=4)](https://github.com/mmoreram "mmoreram (13 commits)")[![marcocrotti69](https://avatars.githubusercontent.com/u/43619650?v=4)](https://github.com/marcocrotti69 "marcocrotti69 (2 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

symfonyheaders

### Embed Badge

![Health badge](/badges/sottosviluppo-http-headers-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sottosviluppo-http-headers-bundle/health.svg)](https://phpackages.com/packages/sottosviluppo-http-headers-bundle)
```

###  Alternatives

[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[a2lix/translation-form-bundle

Translate your doctrine objects easily with some helpers

3376.9M38](/packages/a2lix-translation-form-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

6914.0M61](/packages/scheb-2fa-bundle)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
