PHPackages                             mpchadwick/mwscanutils2 - 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. mpchadwick/mwscanutils2

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

mpchadwick/mwscanutils2
=======================

19183PHP

Since Sep 16Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mpchadwick/Mpchadwick_MwscanUtils2)[ Packagist](https://packagist.org/packages/mpchadwick/mwscanutils2)[ RSS](/packages/mpchadwick-mwscanutils2/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mpchadwick\_MwscanUtils2
========================

[](#mpchadwick_mwscanutils2)

[![Build Status](https://camo.githubusercontent.com/10d50f9fd02008d7b407c72570c6057fcc3fdc6b65e032cf0c97a53cf9423c7e/68747470733a2f2f7472617669732d63692e6f72672f6d70636861647769636b2f4d70636861647769636b5f4d777363616e5574696c73322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mpchadwick/Mpchadwick_MwscanUtils2)

A set of utilities for use in tandem with [magento-malware-scanner](https://github.com/gwillem/magento-malware-scanner) for Magento 2.

Magento 1 version available [here](https://github.com/mpchadwick/Mpchadwick_MwscanUtils).

Installation
------------

[](#installation)

```
composer require mpchadwick/mwscanutils2:dev-master
module:enable Mpchadwick_MwscanUtils
bin/magento setup:upgrade

```

Features
--------

[](#features)

### Content Dump Endpoint

[](#content-dump-endpoint)

Adds an endpoint at `/mwscanutils/contentdump` which returns a `text/plain` response including...

- Content from ALL CMS pages
- Content from ALL CMS blocks
- Miscellaneous Scripts
- Miscellaneous HTML

From a scanning location, you should send the output of this to mwscan.

```
curl --silent https://example.com/mwscanutils/contentdump > content && grep -Erlf mwscan.txt content

```

Additional content can be appended as needed by observing the `mpchadwick_mwscanutils_dump_content_before` event

**events.xml**

```

```

**Example.php**

```
public function execute(EventObserver $observer)
{
    $container = $observer->getEvent()->getContainer();
    $content = $container->getContent();
    $content[] = 'Dump this too.';
    $container->setContent($content);
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3142b7a0d8bf761926281e4b96473501ff1459daed20574a0028587cefaa519e?d=identicon)[mpchadwick](/maintainers/mpchadwick)

---

Top Contributors

[![mpchadwick](https://avatars.githubusercontent.com/u/4132322?v=4)](https://github.com/mpchadwick "mpchadwick (13 commits)")

---

Tags

magento2magento2-extensionmagento2-modulemalware-scannersecurity-tools

### Embed Badge

![Health badge](/badges/mpchadwick-mwscanutils2/health.svg)

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

PHPackages © 2026

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