PHPackages                             superb-code/module-content-security - 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. superb-code/module-content-security

ActiveMagento2-module[Security](/categories/security)

superb-code/module-content-security
===================================

Content Security

1.0.6(1y ago)02.7k↑11.1%proprietaryPHP

Since Jan 6Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/danilkrasnorudskyi/superb-module-content-security)[ Packagist](https://packagist.org/packages/superb-code/module-content-security)[ RSS](/packages/superb-code-module-content-security/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/60f87f32f360956ae2e9564bed1cd9b6ea29ec21cfe292d852465aa9be9c95be/68747470733a2f2f706f7365722e707567782e6f72672f7375706572622d636f64652f6d6f64756c652d636f6e74656e742d73656375726974792f762f737461626c65)](https://packagist.org/packages/superb-code/module-content-security)[![Total Downloads](https://camo.githubusercontent.com/3f2c41b46fbd619613931568fa84f27ceb7f50642630247295229215e57b647d/68747470733a2f2f706f7365722e707567782e6f72672f7375706572622d636f64652f6d6f64756c652d636f6e74656e742d73656375726974792f646f776e6c6f616473)](https://packagist.org/packages/superb-code/module-content-security)

### Install via composer (recommend)

[](#install-via-composer-recommend)

Run the following command in Magento 2 root folder:

```
composer require superb-code/module-content-security
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

```

---

### Environment variables usage (app/etc/env.php)

[](#environment-variables-usage-appetcenvphp)

1. `superb/content_security/escape_config` - escape config, see example below
2. `superb/content_security/escape_debug_log_enabled` - enable/disable debug log. Helps to identify used blocks

```
'superb' => [
    'content_security' => [
        'escape_debug_log_enabled' => true,
        'escape_config' => [
            'checkout_index_index' => [//full action name
                'enabled' => true,
                'allowed_tags' => [
                    'div',
                    'p',
                    'a',
                    'ul',
                    'li',
                    'h1',
                    'h2',
                    'h3',
                    'h4',
                    'h5',
                    'h6'
                ],
                'allowed_attributes' => [
                    'id',
                    'class',
                    'style',
                    'src',
                    'href'
                ]
            ],
            'footer_bottom_links' => [//static block identifier
                'enabled' => true,
                'allowed_tags' => [
                    'div',
                    'p',
                    'a',
                    'ul',
                    'li',
                    'h1',
                    'h2',
                    'h3',
                    'h4',
                    'h5',
                    'h6'
                ],
                'allowed_attributes' => [
                    'id',
                    'class',
                    'style',
                    'src',
                    'href'
                ]
            ]
        ]
    ]
]

```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance63

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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 ~28 days

Total

4

Last Release

460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d79eee03ea47805fedc566c30e93035ca443e39fcd4a515512fcaee32d9d376f?d=identicon)[danilkrasnorudskyi](/maintainers/danilkrasnorudskyi)

---

Top Contributors

[![danilkrasnorudskyi](https://avatars.githubusercontent.com/u/22587822?v=4)](https://github.com/danilkrasnorudskyi "danilkrasnorudskyi (8 commits)")

### Embed Badge

![Health badge](/badges/superb-code-module-content-security/health.svg)

```
[![Health](https://phpackages.com/badges/superb-code-module-content-security/health.svg)](https://phpackages.com/packages/superb-code-module-content-security)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k38](/packages/paragonie-ecc)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

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