quillphp/helmet

Quill PHP helmet middleware

Maintainers

Package info

github.com/quillphp/quill-helmet

pkg:composer/quillphp/helmet

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-04-06 10:01 UTC

This package is auto-updated.

Last update: 2026-04-06 11:54:26 UTC


README

Security header collection for the Quill PHP Framework. Protects your API by setting standard security-related HTTP headers.

Installation

composer require quillphp/helmet

Usage

use Quill\Helmet\Helmet;

$app->use(Helmet::new([
    'frame_options' => 'DENY',
    'xss_protection' => '1; mode=block',
]));

Configuration

Option Default Description
`no_sniff` `'nosniff'` X-Content-Type-Options: nosniff.
`frame_options` `'SAMEORIGIN'` X-Frame-Options policy.
`xss_protection` `'1; mode=block'` X-XSS-Protection policy.
`referrer_policy` `'no-referrer'` Referrer-Policy.
`csp` `"default-src 'self'..."` Content-Security-Policy.

License

MIT