PHPackages                             monish-khatri/security-headers - 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. monish-khatri/security-headers

ActiveLibrary[Security](/categories/security)

monish-khatri/security-headers
==============================

Attach OWASP security related headers to HTTP response.

v1.0.1(3y ago)18501MITPHPPHP ^8.0.2

Since Dec 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/monish-khatri/security-headers)[ Packagist](https://packagist.org/packages/monish-khatri/security-headers)[ RSS](/packages/monish-khatri-security-headers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

[![Laravel 9](https://camo.githubusercontent.com/c4dc762e0ba79730f8acdd1f5de57c195fc4c4f9594d5f3199f41e7fdbf9a6ab/68747470733a2f2f7777772e6575726f74656368636f6e7365696c2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032322f30362f4f574153502e77656270)](https://camo.githubusercontent.com/c4dc762e0ba79730f8acdd1f5de57c195fc4c4f9594d5f3199f41e7fdbf9a6ab/68747470733a2f2f7777772e6575726f74656368636f6e7365696c2e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032322f30362f4f574153502e77656270)

 [ ![Total Downloads](https://camo.githubusercontent.com/f3bca1132756fd9a239f17accb51dc68df4b42a2426657d0777896227a075de6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6e6973682d6b68617472692f73656375726974792d68656164657273) ](https://packagist.org/packages/monish-khatri/security-headers) [ ![Latest Stable Version](https://camo.githubusercontent.com/ddfb4d3b4bf0db721d8c4a25aec781f9967521d2b8776d5dfe6779a844871439/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6e6973682d6b68617472692f73656375726974792d68656164657273) ](https://packagist.org/packages/monish-khatri/security-headers) [ ![License](https://camo.githubusercontent.com/b019e5bae53f900114eaca764141f8b2772b17b1047770e0e242530cf9ffea32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6f6e6973682d6b68617472692f73656375726974792d68656164657273) ](https://packagist.org/packages/monish-khatri/security-headers) [ ![License](https://camo.githubusercontent.com/61795b2a32532c48d2cdf2c9596a68410962dddef23e976778002d951cbbc123/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d6f6e6973682d6b68617472692f73656375726974792d68656164657273) ](https://packagist.org/packages/monish-khatri/security-headers)

Introduction
------------

[](#introduction)

Package provides a minimal and simple integration to attach security headers for building a secure Laravel application. This package publishes config file to your application that can be easily customized based on your own application's needs.

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).

Installation guide
------------------

[](#installation-guide)

You can setup the Security Headers by following given steps in [Installation guide](INSTALLATION.md).

Contributing
------------

[](#contributing)

Pull requests and feedback are very welcome :) on GitHub at

License
-------

[](#license)

Laravel Security Headers is open-sourced software licensed under the [MIT license](LICENSE.md).

Support
-------

[](#support)

[ ![monishkhatri](https://camo.githubusercontent.com/0cf29a542375e1a46e84d8bf5805a4e5c0a6ee98b6547ccdc0c55eed49d99c69/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d79656c6c6f772e706e67)](https://www.buymeacoffee.com/monishkhatri)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1234d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec53e03d83e88f05cd3b1879130c76ee7a6baff168040ee18338e5e3d7e07c27?d=identicon)[monish-khatri](/maintainers/monish-khatri)

---

Top Contributors

[![monish-khatri](https://avatars.githubusercontent.com/u/79303540?v=4)](https://github.com/monish-khatri "monish-khatri (11 commits)")[![monishkhatri](https://avatars.githubusercontent.com/u/107910377?v=4)](https://github.com/monishkhatri "monishkhatri (1 commits)")

---

Tags

composer-packagelaravelowasp-top-10php8securitysecurity-headershttpslaravelheadercspcontent-security-policyhstsexcept-ctfeature-policyclear-site-datareferrer-policy

### Embed Badge

![Health badge](/badges/monish-khatri-security-headers/health.svg)

```
[![Health](https://phpackages.com/badges/monish-khatri-security-headers/health.svg)](https://phpackages.com/packages/monish-khatri-security-headers)
```

###  Alternatives

[bepsvpt/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

5484.7M9](/packages/bepsvpt-secure-headers)[spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

8519.6M19](/packages/spatie-laravel-csp)[aidantwoods/secureheaders

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

433689.3k2](/packages/aidantwoods-secureheaders)[stevenmaguire/laravel-middleware-csp

Provides support for enforcing Content Security Policy with headers in Laravel responses.

39107.6k](/packages/stevenmaguire-laravel-middleware-csp)[mazedlx/laravel-feature-policy

Add Feature-Policy headers to the responses of a Laravel app

17180.5k](/packages/mazedlx-laravel-feature-policy)[born05/craft-csp

Content Security Policy (or CSP) generator using nonces.

1110.2k](/packages/born05-craft-csp)

PHPackages © 2026

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