PHPackages                             jdz/cspmaker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. jdz/cspmaker

ActiveLibrary[Security](/categories/security)

jdz/cspmaker
============

Build Content Security Policy (CSP) header strings from a fluent builder, a config array/file, or reusable third-party integration recipes

1.0.0(2d ago)02↓100%MITPHP &gt;=8.2

Since Jul 9Compare

[ Source](https://github.com/joffreydemetz/cspMaker)[ Packagist](https://packagist.org/packages/jdz/cspmaker)[ Docs](https://jdz.joffreydemetz.com/cspmaker)[ RSS](/packages/jdz-cspmaker/feed)WikiDiscussions Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/joffreydemetz/cspMaker).

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e83e3701566e43438525ed14578487e732b849d152b5071aa1613a0dad96913?d=identicon)[jdz](/maintainers/jdz)

---

Tags

securitycspcontent-security-policymakerJDZ

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jdz-cspmaker/health.svg)

```
[![Health](https://phpackages.com/badges/jdz-cspmaker/health.svg)](https://phpackages.com/packages/jdz-cspmaker)
```

###  Alternatives

[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

86611.1M25](/packages/spatie-laravel-csp)[aidantwoods/secureheaders

A PHP class aiming to make the use of browser security features more accessible.

434731.2k2](/packages/aidantwoods-secureheaders)[paragonie/csp-builder

Easily add and update Content-Security-Policy headers for your project

5413.0M26](/packages/paragonie-csp-builder)[born05/craft-csp

Content Security Policy (or CSP) generator using nonces.

1110.4k](/packages/born05-craft-csp)[middlewares/csp

Middleware to add the Content-Security-Policy header to the response

1524.0k](/packages/middlewares-csp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
