Search by

yireo / magento2-clean-modules

yireo

Magento 2 module to remove invalid entries from app/etc/config.php

Package info

github.com/yireo/Yireo_CleanModules

Type:magento2-module

pkg:composer/yireo/magento2-clean-modules

Statistics

Installs: 948

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.0.4 2026-11-26 14:44 UTC

This package is auto-updated.

Last update: 2026-11-28 21:47:01 UTC


README

Magento version PHP version License Latest Version

This Magento 2 module adds a CLI command yireo:modules:clean to remove non-existing modules from app/etc/config.php

Installation

Install this package via composer:

composer require yireo/magento2-clean-modules

Next, enable this module:

bin/magento module:enable Yireo_CleanModules

Usage

bin/magento yireo:modules:check            # Lists enabled modules that do not exist (exit code 1 if any)
bin/magento yireo:modules:clean --dry-run  # Shows which modules would be disabled
bin/magento yireo:modules:clean            # Asks for confirmation, backs up app/etc/config.php and disables missing modules
bin/magento yireo:modules:clean --remove   # Removes missing modules (enabled or disabled) from app/etc/config.php instead of disabling them
bin/magento yireo:modules:clean --force    # Skips the confirmation and the safety check on core modules or more than 10 modules

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation