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.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Pending changes Jul 8, 2019
composer.json Update composer.json Jul 8, 2019
magento2-run-tests.sh Fix typos Jul 8, 2019

README.md

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

Requiments

This package support Magento 2.3 or higher.

Notes

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

Troubleshooting

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.

Testing

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.

You can’t perform that action at this time.