SkillAgentSearch skills...

PsrAdapter

SecureHeaders Psr HttpAdapter

Install / Use

/learn @SecureHeaders/PsrAdapter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

SecureHeaders PSR-7 Adapter Build Status Build Status

A PSR-7 adapter for SecureHeaders. For more information on adapters, see Framework Integration in the SecureHeaders Wiki.

Installation

composer require secureheaders/psradapter

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();

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated12d ago
Forks1

Languages

PHP

Security Score

85/100

Audited on Mar 17, 2026

No findings