Download the PHP package kingsoft/csp-builder without Composer
On this page you can find all versions of the php package kingsoft/csp-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kingsoft/csp-builder
More information about kingsoft/csp-builder
Files in kingsoft/csp-builder
Download kingsoft/csp-builder
More information about kingsoft/csp-builder
Files in kingsoft/csp-builder
Vendor kingsoft
Package csp-builder
Short Description Content Security Policy builder for PHP
License MIT
Package csp-builder
Short Description Content Security Policy builder for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package csp-builder
CSP Builder
Build Content-Security-Policy (CSP) headers in PHP.
Installation
Install with Composer:
Usage
You can also build the header string without sending it:
To initialize all supported sources with 'self' by default:
Enums
Source (directive keys):
Source::Default(default-src)Source::Image(img-src)Source::Font(font-src)Source::Script(script-src)Source::Style(style-src)Source::Connect(connect-src)Source::Object(object-src)Source::Frame(frame-src)Source::Base(base-uri)Source::Form(form-action)Source::Manifest(manifest-src)
Directive (directive values):
Note: quoted CSP keywords are already formatted in the enum values (for example
Directive::Selfbecomes'self'in the header).
Directive::Self('self')Directive::UnsafeInline('unsafe-inline')Directive::UnsafeEval('unsafe-eval')Directive::Data(data:)Directive::Blob(blob:)Directive::Media(media:)Directive::Frame(frame:)
All versions of csp-builder with dependencies
PHP Build Version
Package Version
No informations.
The package kingsoft/csp-builder contains the following files
Loading the files please wait ...