andrewrmillar / magento-check-module-usage
A Magento 2 module to check module usage.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=8.1
- magento/framework: ^103.0
This package is auto-updated.
Last update: 2025-08-05 09:39:45 UTC
README
Overview
Module in Alpha, not recomended for use yet. This Magento 2 CLI module, primary for use in a develop environment, which helps determine whether a specific module is in use within a Magento installation. It checks:
- If the module is enabled.
- If the module has active configuration settings.
- If the module has database tables.
- If the module is referenced in theme files.
Installation
Copy or use composer
Clone the module in the app/code/
directory and activate it through bin/magento module:enable Vendor_ModuleCheck
.
Or better yet use composer install
composer require --dev andrewrmillar/magento-check-module-usage` bin/magento setup:upgrade
Usage
To check if a module is in use, run:
bin/magento module:check-usage Vendor_Module
Replace Vendor_Module
with the actual module name (e.g., Magento_Catalog
).
Features
- Checks if the module is enabled using Magento's module registry.
- Verifies module configuration settings dynamically.
- Checks for module-related database tables.
- Scans frontend theme files for module references.
Example Output
Checking module: Vendor_Module
Module is enabled.
Module has active config settings:
path/to/some/config/value = 1
Found module-related database tables.
Module is referenced in theme files.
Check complete.
Uninstallation
To remove the module:
composer remove andrewrmillar/magento-check-module-usage bin/magento setup:upgrade
License
This module is open-source and provided under the MIT License.
Author
Developed by AndrewRMillar. Contributions are welcome!