This repository contains a composer meta-package that removes numerous Magento 2 modules, making your environment lighter. To install, use the following:
composer require yireo/magento2-replace-all:2.3.*
Replace *
with your magento version
This package support Magento 2.3 or higher.
This package makes use of the following sub-packages:
yireo/magento2-replace-bundled
removes third party bundled extensionsyireo/magento2-replace-core
removes optional core modulesyireo/magento2-replace-graphql
removes optional GraphQL modulesyireo/magento2-replace-inventory
removes optional MSI modules
The following things might fail with these replacements:
- A certain extension might have a dependency on Magento module X, documented via its
composer.json
or not. If so, skip our main package but copy thereplace
lines to your own project composer. - After installing certain extensions, everything works fine on a composer level, but things fail when compiling DI
(
setup:di:compile
). If this concerns a setup with only core packages, make sure to open an Issue.
To test if all packages are valid, I have used the script magento2-run-tests.sh
included in this repo. To test this
yourself, make sure to start with a completely clean Magento 2 setup. Next, once Magento is setup and confirmed to be
working, copy this script to its root and run it. The scripts argument defaults to using the @dev
versions of these
replace packages:
./magento2-run-tests.sh 2.3.2
In a generic environment, all tests (and therefore, all possible combinations of the replace packages) should work.