PHPackages                             secureheaders/psradapter - 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. secureheaders/psradapter

ActiveLibrary

secureheaders/psradapter
========================

SecureHeaders Psr7 Http Adapter

2.0.x-dev(7y ago)41091[1 issues](https://github.com/SecureHeaders/PsrAdapter/issues)MITPHPPHP &gt;=7.0CI failing

Since Oct 21Pushed 6y ago4 watchersCompare

[ Source](https://github.com/SecureHeaders/PsrAdapter)[ Packagist](https://packagist.org/packages/secureheaders/psradapter)[ RSS](/packages/secureheaders-psradapter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

SecureHeaders PSR-7 Adapter [![Build Status](https://camo.githubusercontent.com/f06489672fe2ee265b93275bcefe6c86501b7be8438d0ef7dc06b4776f2180ab/68747470733a2f2f7472617669732d63692e6f72672f536563757265486561646572732f507372416461707465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SecureHeaders/PsrAdapter) [![Build Status](https://camo.githubusercontent.com/eac35b6d2ebaf6a6297ec57c442032f078e2579a134bb8dc7d0810789bae591b/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6769746875622f736563757265686561646572732f707372616461707465723f6272616e63683d6d6173746572267376673d7472756526726574696e613d74727565)](https://ci.appveyor.com/project/aidantwoods/psradapter)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#secureheaders-psr-7-adapter--)

A PSR-7 adapter for [SecureHeaders](https://github.com/aidantwoods/SecureHeaders). For more information on adapters, see [Framework Integration](https://github.com/aidantwoods/SecureHeaders/wiki/Framework-Integration) in the SecureHeaders Wiki.

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

[](#installation)

`composer require secureheaders/psradapter`

Usage
-----

[](#usage)

Assuming you already have a PSR-7 response object (e.g. returned from a previous middleware) in the `$response` variable:

```
// Configure SecureHeaders
$headers = new Aidantwoods\SecureHeaders\SecureHeaders;
$headers->strictMode();

// Instantiate the adapter with your response object
$adapter = new SecureHeaders\PsrHttpAdapter\Psr7Adapter($response);

// Apply your SecureHeaders configuration
$headers->apply($adapter);

// And finally retrieve the updated HTTP response object
$response = $adapter->getSecuredResponse();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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 ~516 days

Total

2

Last Release

2606d ago

Major Versions

v0.1-beta1 → 2.0.x-dev2019-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbb49e6e5041af70c7a518aed76ce2f38091eeae6f14febc2e54f71cfa8f7738?d=identicon)[aidantwoods](/maintainers/aidantwoods)

---

Top Contributors

[![aidantwoods](https://avatars.githubusercontent.com/u/3288888?v=4)](https://github.com/aidantwoods "aidantwoods (16 commits)")[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (9 commits)")[![franzliedke](https://avatars.githubusercontent.com/u/249125?v=4)](https://github.com/franzliedke "franzliedke (3 commits)")

---

Tags

secureheaderspsr7secureheaders

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/secureheaders-psradapter/health.svg)

```
[![Health](https://phpackages.com/badges/secureheaders-psradapter/health.svg)](https://phpackages.com/packages/secureheaders-psradapter)
```

###  Alternatives

[league/openapi-psr7-validator

Validate PSR-7 messages against OpenAPI (3.0.2) specifications expressed in YAML or JSON

55615.9M69](/packages/league-openapi-psr7-validator)[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6633.1M116](/packages/league-route)[akrabat/ip-address-middleware

PSR-15 middleware that determines the client IP address and stores it as a ServerRequest attribute

1702.5M18](/packages/akrabat-ip-address-middleware)[akrabat/proxy-detection-middleware

PSR-7/PSR-15 Middleware that determines the scheme, host and port from the 'X-Forwarded-Proto', 'X-Forwarded-Host' and 'X-Forwarded-Port' headers and updates the Request's Uri object.

3190.4k1](/packages/akrabat-proxy-detection-middleware)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[uma/psr7-hmac

An HMAC authentication library built on top of the PSR-7 specification

2348.0k2](/packages/uma-psr7-hmac)

PHPackages © 2026

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