andrewrmillar/magento-check-module-usage
Composer 安装命令:
composer require andrewrmillar/magento-check-module-usage
包简介
A Magento 2 module to check module usage.
README 文档
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!
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-04