quillphp / helmet
Quill PHP helmet middleware
dev-main
2026-04-06 10:01 UTC
Requires
- php: >=8.3
- quillphp/quill: ^0.0.2
Requires (Dev)
- phpunit/phpunit: ^11.0
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