geggleto/csp-middleware

0.0.1 2016-02-01 17:54 UTC

This package is auto-updated.

Last update: 2024-11-29 04:51:08 UTC


README

Extends CSPBuild to provide an invokable interface for PSR-7 Middleware Stacks

Usage

//Examples written to use Slim 3
$cspMiddleware = CSPMiddleware::fromFile('/path/to/source.json');

//App Middleware
$app->add($cspMiddleware);

//Route Middleware
$app->get(''...)->add($cspMiddleware);