2017 © Pedro Peláez
 

library psradapter

SecureHeaders Psr7 Http Adapter

image

secureheaders/psradapter

SecureHeaders Psr7 Http Adapter

  • Saturday, October 21, 2017
  • by aidantwoods
  • Repository
  • 4 Watchers
  • 5 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 3 Versions
  • 25 % Grown

The README.md

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., (*1)

Installation

composer require secureheaders/psradapter, (*2)

Usage

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

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

The Versions

21/10 2017

dev-master

9999999-dev

SecureHeaders Psr7 Http Adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

psr7 secureheaders

21/10 2017

v0.1-beta1

0.1.0.0-beta1

SecureHeaders Psr7 Http Adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

psr7 secureheaders

21/10 2017

2.0.x-dev

2.0.9999999.9999999-dev

SecureHeaders Psr7 Http Adapter

  Sources   Download

MIT

The Requires

 

The Development Requires

psr7 secureheaders