PHPackages                             batch.com/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. batch.com/headers-bundle

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

batch.com/headers-bundle
========================

A Symfony bundle to easily add headers to your responses.

2.0.0(3y ago)053.4k↓59.7%4[1 issues](https://github.com/BatchLabs/headers-bundle/issues)[1 PRs](https://github.com/BatchLabs/headers-bundle/pulls)MITPHPPHP ^8.0

Since Oct 15Pushed 2y ago4 watchersCompare

[ Source](https://github.com/BatchLabs/headers-bundle)[ Packagist](https://packagist.org/packages/batch.com/headers-bundle)[ RSS](/packages/batchcom-headers-bundle/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (15)Versions (6)Used By (0)

Batch Headers Bundle
====================

[](#batch-headers-bundle)

A Symfony bundle to ease the configuration of global response headers. Instead of creating a response listener to add custom headers, use a configuration file:

```
batch_headers:
  headers:
    # Apply a CSP on all the responses
    - Content-Security-Policy: default-src 'self'

    # Allow your API to be requested from all origins
    - name: Access-Control-Allow-Origin
      value: "*"
      condition: request.getPathInfo() matches '^/api'

    # Always cache images
    - name: Cache-Control
      value: max-age=31536000, public
      condition: response.headers.get('Content-Type') matches '^image/'
```

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

[](#installation)

```
$ composer require batch.com/headers-bundle
```

Read the documentation for complete instructions.

Documentation
-------------

[](#documentation)

Read the documentation in [src/Resources/doc/](src/Resources/doc/index.md)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~227 days

Total

4

Last Release

1405d ago

Major Versions

1.1.1 → 2.0.02022-08-29

PHP version history (2 changes)1.0.0PHP ^7.2

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/817508?v=4)[Johann Pardanaud](/maintainers/nesk)[@nesk](https://github.com/nesk)

---

Top Contributors

[![tforesti](https://avatars.githubusercontent.com/u/7936481?v=4)](https://github.com/tforesti "tforesti (2 commits)")

---

Tags

headershttpsymfonysymfony-bundle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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