Yireo_EnableModuleSequence
PHP
8.1 - 8.4
Magento
2.4.7 | 2.4.8
CSP
Yes
PHPStan
5
Magento PHPCS
7
Latest Release
1.0.2
When running the Magento 2 command bin/magento module:enable for a given module, the dependencies of that module (as declared in the sequence of its etc/module.xml file) is not enabled. This is a good thing, because not always does the sequence reflect all neccessary dependencies. But if so, this module gives you a command to enable all dependencies at once.
Installation
composer require yireo/magento2-enable-module-sequence
bin/magento module:enable Yireo_EnableModuleSequence
Usage
bin/magento module:sequence Yireo_Example
Multiple modules can be passed at once. All of them, plus their sequence dependencies (recursively), are
enabled in a single module:enable call:
bin/magento module:sequence Yireo_Example Yireo_AnotherExample
Current status
Support
For getting support, create an Issue under the following project URL:
https://github.com/yireo/Yireo_EnableModuleSequence
Composer details
Magento module name
Yireo_EnableModuleSequenceComposer name
yireo/magento2-enable-module-sequenceComposer version
1.0.3
Default branch
master
Requirements
magento/framework: ^103.0
php: >=8.2 <8.6
Releases
| 1.0.2 | 23 October 2026 |
| 1.0.1 | 23 October 2026 |
| 1.0.0 | 23 October 2026 |
Changelog
[1.0.3] - 12 October 2026
Added
- Resolve the module sequence recursively, so dependencies of dependencies are enabled as well
Fixed
- Skip modules without a readable
etc/module.xmlinstead of failing - Skip sequence modules that are not installed, instead of failing with "Unknown module(s)"
[1.0.2] - 05 June 2026
Fixed
- Allow running command with one or more modules
[1.0.1] - 22 October 2025
Fixed
- Update README
- Rename command from module:enable:sequence to module:sequence
- Return empty if no module is found
[1.0.0] - 25 September 2025
Added
- Initial release
Last modified: October 17, 2026