PHPackages                             yireo/magento2-csp-inspector - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yireo/magento2-csp-inspector

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

yireo/magento2-csp-inspector
============================

Magento module to help with inspecting CSP headers

1.0.6(2mo ago)497OSL-3.0PHPCI passing

Since Aug 23Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/yireo/Yireo_CspInspector)[ Packagist](https://packagist.org/packages/yireo/magento2-csp-inspector)[ Fund](https://www.paypal.me/yireo)[ GitHub Sponsors](https://github.com/yireo)[ RSS](/packages/yireo-magento2-csp-inspector/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (6)Versions (8)Used By (0)

CSP Inspector for Magento 2
===========================

[](#csp-inspector-for-magento-2)

**Simple CLI tool to inspect the current CSP headers of a specified Magento URL and report back the values - because it is too cumbersome to search for values in the browser.**

**Please note that this tool does NOT report issues with those CSP headers, it only inspects the currently generated HTTP headers. Use other tools like SanSec Watch or the M.Academy CSP Generator to fix your CSP headers.**

### Installation

[](#installation)

```
composer require --dev yireo/magento2-csp-inspector
bin/magento module:enable Yireo_CspInspector
```

### Usage

[](#usage)

Report all policies and the mode of the homepage:

```
bin/magento csp:inspect
```

Report all policies and the mode of the cart-page:

```
bin/magento csp:inspect checkout/cart
```

Report all policy values for the policy `script-src` on the homepage:

```
bin/magento csp:inspect:policy script-src
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~108 days

Recently: every ~159 days

Total

7

Last Release

79d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (28 commits)")

### Embed Badge

![Health badge](/badges/yireo-magento2-csp-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-csp-inspector/health.svg)](https://phpackages.com/packages/yireo-magento2-csp-inspector)
```

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

69362.0k](/packages/run-as-root-magento2-prometheus-exporter)[spatie/laravel-export

Create a static site bundle from a Laravel app

679153.2k7](/packages/spatie-laravel-export)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1015.1k29](/packages/loki-magento2-components)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[lion/bundle

Lion-framework configuration and initialization package

132.4k5](/packages/lion-bundle)

PHPackages © 2026

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