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. [HTTP &amp; Networking](/categories/http)
4. /
5. secureheaders/psradapter

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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 3w 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 26% 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

2662d ago

Major Versions

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3288888?v=4)[Aidan Woods](/maintainers/aidantwoods)[@aidantwoods](https://github.com/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

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[league/openapi-psr7-validator

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

56117.4M93](/packages/league-openapi-psr7-validator)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M126](/packages/mezzio-mezzio)[hyperf/hyperf

A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.

6.9k3.3k2](/packages/hyperf-hyperf)[sunrise/http-router

A powerful solution as the foundation of your project.

17451.6k10](/packages/sunrise-http-router)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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