sampurn/module-inspector

Magento 2 CLI command that reports installed third-party modules with version and enabled status. A quick first step when auditing an unfamiliar store.

Maintainers

Package info

github.com/sampurnmishra/magento2-module-inspector

Type:magento2-module

pkg:composer/sampurn/module-inspector

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-07-15 03:42 UTC

This package is auto-updated.

Last update: 2026-07-15 03:55:01 UTC


README

A small Magento 2 CLI module that reports every installed third-party module with its version and enabled status — the first command I run when auditing an unfamiliar store.

$ bin/magento sampurn:module:report

+---------------------------+----------+----------+
| Module                    | Version  | Status   |
+---------------------------+----------+----------+
| Amasty_Base               | 1.15.5   | enabled  |
| Hyva_Theme                | 1.3.10   | enabled  |
| OldVendor_AbandonedThing  | app/code | disabled |
+---------------------------+----------+----------+
3 module(s) listed.

Why

The very first question on any Magento audit, rescue, or upgrade estimate is: what has been added to this installation? Core Magento is a known quantity — the third-party modules are where the surprises (and most upgrade blockers) live. This command answers that question in one step, including modules installed in app/code that composer doesn't know about.

Install

composer require sampurn/module-inspector
bin/magento module:enable Sampurn_ModuleInspector
bin/magento setup:upgrade

Or manually: copy this repository to app/code/Sampurn/ModuleInspector, then run the two bin/magento commands above.

Usage

# Third-party modules only (default)
bin/magento sampurn:module:report

# Include Magento core modules
bin/magento sampurn:module:report --all

# Only disabled modules — abandoned code that should probably be removed
bin/magento sampurn:module:report --disabled-only

Version resolution: modules installed via composer show their package version; modules living in app/code are marked app/code (they have no composer package entry — itself useful audit information).

Compatibility

  • Magento 2.4.4+ / Adobe Commerce 2.4.4+
  • PHP 8.1 – 8.3

License

MIT