Skip to content
Meta-package to replace all optional Magento 2 modules
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information. Pending changes Jul 8, 2019
composer.json Update composer.json Jul 8, 2019 Fix typos Jul 8, 2019

Magento 2 removal of all optional modules

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 extensions
  • yireo/magento2-replace-core removes optional core modules
  • yireo/magento2-replace-graphql removes optional GraphQL modules
  • yireo/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 the replace 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 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:

./ 2.3.2

In a generic environment, all tests (and therefore, all possible combinations of the replace packages) should work.

You can’t perform that action at this time.