├── .github ├── ISSUE_TEMPLATE │ └── bug_report.md └── workflows │ ├── magento-installation.yml │ └── magento_version.txt ├── .travis.yml ├── README.md └── composer.json /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | If you report an issue, don't just report the composer error but be specific on versions, subpackages, replacement lines and how you got into this error. If you think you don't need to wipe out the `composer.lock` and `vendor/` folder, first carefully read the following: https://github.com/yireo/magento2-replace-tools Composer replacements require you to think differently about composer. 11 | -------------------------------------------------------------------------------- /.github/workflows/magento-installation.yml: -------------------------------------------------------------------------------- 1 | name: Magento installation 2 | on: [push] 3 | defaults: 4 | run: 5 | shell: bash 6 | jobs: 7 | magento-installation: 8 | name: Magento 2 Test Install 9 | runs-on: ubuntu-latest 10 | container: yireo/magento2base:7.4 11 | services: 12 | es: 13 | image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0 14 | ports: 15 | - 9200:9200 16 | options: -e="discovery.type=single-node" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10 17 | mysql: 18 | image: mysql:5.7 19 | env: 20 | MYSQL_ROOT_PASSWORD: root 21 | MYSQL_DATABASE: magento2 22 | ports: 23 | - 3306:3306 24 | options: --tmpfs /tmp:rw --tmpfs /var/lib/mysql:rw --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 25 | steps: 26 | - uses: actions/checkout@v2 27 | - name: Composer preparation 28 | env: 29 | MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }} 30 | MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }} 31 | COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} 32 | run: | 33 | mkdir -p /tmp/m2 && cd /tmp/m2 34 | composer global config github-oauth.github.com $COMPOSER_TOKEN 35 | composer global config http-basic.repo.magento.com $MAGENTO_MARKETPLACE_USERNAME $MAGENTO_MARKETPLACE_PASSWORD 36 | - name: Creating Magento composer project 37 | run: | 38 | MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt` 39 | test -z "$MAGENTO_VERSION" && exit 1 40 | composer create-project --repository=https://repo.magento.com/ magento/project-community-edition:${MAGENTO_VERSION} /tmp/m2 --no-install --no-interaction --no-progress 41 | - name: Setup local composer package 42 | env: 43 | COMPOSER_NAME: ${{ secrets.COMPOSER_NAME }} 44 | run: | 45 | MAGENTO_VERSION=`cat ${GITHUB_WORKSPACE}/.github/workflows/magento_version.txt` 46 | BRANCH=magento-`echo $MAGENTO_VERSION | cut -f'1-2' -d\.` 47 | test -z "$MAGENTO_VERSION" && exit 1 48 | cd /tmp/m2 49 | ln -s ${GITHUB_WORKSPACE} local-source 50 | composer config preferred-install source 51 | composer config minimum-stability dev 52 | composer config repositories.remote-source vcs git@github.com:${COMPOSER_NAME}.git 53 | composer config repositories.local-source path local-source/ 54 | echo "Installing ${COMPOSER_NAME}:dev-${BRANCH}" 55 | composer require ${COMPOSER_NAME}:dev-${BRANCH} --no-update --no-interaction 56 | - name: Composer installation 57 | run: | 58 | cd /tmp/m2 59 | COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source --no-interaction --no-progress --no-dev 60 | - name: Magento installation 61 | run: | 62 | cd /tmp/m2 63 | php -d memory_limit=2G bin/magento setup:install --base-url=http://magento2.test/ \ 64 | --db-host=mysql --db-name=magento2 \ 65 | --db-user=root --db-password=root \ 66 | --admin-firstname=John --admin-lastname=Doe \ 67 | --admin-email=johndoe@example.com \ 68 | --admin-user=johndoe --admin-password=johndoe!1234 \ 69 | --backend-frontname=admin --language=en_US \ 70 | --currency=USD --timezone=Europe/Amsterdam --cleanup-database \ 71 | --sales-order-increment-prefix="ORD$" --session-save=db \ 72 | --use-rewrites=1 --elasticsearch-host=es --search-engine=elasticsearch7 73 | - name: Magento compilation 74 | run: | 75 | cd /tmp/m2 76 | php -d memory_limit=2G bin/magento setup:di:compile 77 | - name: Additional checks 78 | run: | 79 | cd /tmp/m2 80 | bin/magento module:status | sort 81 | 82 | -------------------------------------------------------------------------------- /.github/workflows/magento_version.txt: -------------------------------------------------------------------------------- 1 | 2.4.3 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | dist: trusty 3 | group: edge 4 | addons: 5 | apt: 6 | packages: 7 | - mysql-server-5.6 8 | - mysql-client-core-5.6 9 | - mysql-client-5.6 10 | - postfix 11 | hosts: 12 | - magento2.test 13 | services: 14 | - docker 15 | - mysql 16 | language: php 17 | #php: 18 | # - 7.1 19 | # - 7.2 20 | # - 7.3 21 | env: 22 | global: 23 | - MAGENTO_HOST_NAME="magento2.test" 24 | - MAGENTO_PROTOCOL="https" 25 | - MAGENTO_BACKEND="backend" 26 | - MAGENTO_ADMIN_USERNAME="admin" 27 | - MAGENTO_ADMIN_PASSWORD="123123q" 28 | matrix: 29 | - MAGENTO_VERSION=2.3.4 TRAVIS_PHP_VERSION=7.4 PACKAGES=(core|bundled|graphql|inventory) 30 | matrix: 31 | fast_finish: true 32 | cache: 33 | directories: 34 | - $HOME/.composer/cache 35 | install: 36 | - bash -x .travis/install.sh 37 | script: 38 | - bash -x .travis/script.sh 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Magento 2 removal of all optional modules 2 | 3 | **WARNING: This package is primarily meant as an experiment. We recommend using the other meta-packages in production.** 4 | 5 | This repository contains a composer meta-package that removes optional modules. To install this package, use the instructions on the repository [`yireo/magento2-replace-tools`.](https://github.com/yireo/magento2-replace-tools) 6 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yireo/magento2-replace-all", 3 | "description": "Remove various packages from Magento", 4 | "require": { 5 | "magento/product-community-edition": "2.4.*" 6 | }, 7 | "replace": { 8 | "amzn/amazon-pay-and-login-magento-2-module": "*", 9 | "amzn/amazon-pay-and-login-with-amazon-core-module": "*", 10 | "amzn/amazon-pay-module": "*", 11 | "amzn/amazon-pay-sdk-php": "*", 12 | "amzn/login-with-amazon-module": "*", 13 | "astock/stock-api-libphp": "*", 14 | "braintree/braintree": "*", 15 | "braintree/braintree_php": "*", 16 | "dotmailer/dotmailer-magento2-extension": "*", 17 | "dotmailer/dotmailer-magento2-extension-b2b": "*", 18 | "dotmailer/dotmailer-magento2-extension-chat": "*", 19 | "dotmailer/dotmailer-magento2-extension-enterprise": "*", 20 | "dotmailer/dotmailer-magento2-extension-enterprise-package": "*", 21 | "dotmailer/dotmailer-magento2-extension-package": "*", 22 | "dotmailer/dotmailer-magento2-extension-sms": "*", 23 | "klarna/m2-payments": "*", 24 | "klarna/module-core": "*", 25 | "klarna/module-kp": "*", 26 | "klarna/module-kp-graph-ql": "*", 27 | "klarna/module-onsitemessaging": "*", 28 | "klarna/module-ordermanagement": "*", 29 | "magento/adobe-stock-integration": "*", 30 | "magento/google-shopping-ads": "*", 31 | "magento/inventory-composer-installer": "*", 32 | "magento/inventory-composer-metapackage": "*", 33 | "magento/module-admin-adobe-ims": "*", 34 | "magento/module-admin-analytics": "*", 35 | "magento/module-adobe-ims": "*", 36 | "magento/module-admin-adobe-ims-two-factor-auth": "*", 37 | "magento/module-adobe-ims-api": "*", 38 | "magento/module-adobe-stock-admin-ui": "*", 39 | "magento/module-adobe-stock-asset": "*", 40 | "magento/module-adobe-stock-asset-api": "*", 41 | "magento/module-adobe-stock-client": "*", 42 | "magento/module-adobe-stock-client-api": "*", 43 | "magento/module-adobe-stock-image": "*", 44 | "magento/module-adobe-stock-image-admin-ui": "*", 45 | "magento/module-adobe-stock-image-api": "*", 46 | "magento/module-advanced-pricing-import-export": "*", 47 | "magento/module-amqp": "*", 48 | "magento/module-amqp-store": "*", 49 | "magento/module-analytics": "*", 50 | "magento/module-authorizenet": "*", 51 | "magento/module-authorizenet-acceptjs": "*", 52 | "magento/module-authorizenet-cardinal": "*", 53 | "magento/module-authorizenet-graph-ql": "*", 54 | "magento/module-aws-s3": "*", 55 | "magento/module-aws-s3-page-builder": "*", 56 | "magento/module-braintree": "*", 57 | "magento/module-braintree-graph-ql": "*", 58 | "magento/module-bundle-graph-ql": "*", 59 | "magento/module-bundle-import-export": "*", 60 | "magento/module-bundle-import-export-staging": "*", 61 | "magento/module-bundle-sample-data": "*", 62 | "magento/module-bundle-staging": "*", 63 | "magento/module-cardinal-commerce": "*", 64 | "magento/module-catalog-analytics": "*", 65 | "magento/module-catalog-cms-graph-ql": "*", 66 | "magento/module-catalog-customer-graph-ql": "*", 67 | "magento/module-catalog-customer-ql": "*", 68 | "magento/module-catalog-graph-ql": "*", 69 | "magento/module-catalog-import-export-staging": "*", 70 | "magento/module-catalog-inventory-graph-ql": "*", 71 | "magento/module-catalog-inventory-staging": "*", 72 | "magento/module-catalog-page-builder-analytics": "*", 73 | "magento/module-catalog-page-builder-analytics-staging": "*", 74 | "magento/module-catalog-permissions-graph-ql": "*", 75 | "magento/module-catalog-rule-graph-ql": "*", 76 | "magento/module-catalog-rule-sample-data": "*", 77 | "magento/module-catalog-rule-staging": "*", 78 | "magento/module-catalog-sample-data": "*", 79 | "magento/module-catalog-staging": "*", 80 | "magento/module-catalog-staging-graph-ql": "*", 81 | "magento/module-catalog-staging-page-builder": "*", 82 | "magento/module-catalog-url-rewrite-graph-ql": "*", 83 | "magento/module-catalog-url-rewrite-staging": "*", 84 | "magento/module-checkout-agreements-graph-ql": "*", 85 | "magento/module-checkout-staging": "*", 86 | "magento/module-cms-graph-ql": "*", 87 | "magento/module-cms-page-builder-analytics": "*", 88 | "magento/module-cms-page-builder-analytics-staging": "*", 89 | "magento/module-cms-sample-data": "*", 90 | "magento/module-cms-staging": "*", 91 | "magento/module-cms-url-rewrite-graph-ql": "*", 92 | "magento/module-compare-list-graph-ql": "*", 93 | "magento/module-configurable-product-graph-ql": "*", 94 | "magento/module-configurable-product-staging": "*", 95 | "magento/module-configurable-sample-data": "*", 96 | "magento/module-csp": "*", 97 | "magento/module-customer-analytics": "*", 98 | "magento/module-customer-balance-graph-ql": "*", 99 | "magento/module-customer-downloadable-graph-ql": "*", 100 | "magento/module-customer-finance": "*", 101 | "magento/module-customer-graph-ql": "*", 102 | "magento/module-customer-import-export": "*", 103 | "magento/module-customer-sample-data": "*", 104 | "magento/module-cybersource": "*", 105 | "magento/module-dhl": "*", 106 | "magento/module-directory-graph-ql": "*", 107 | "magento/module-downloadable-graph-ql": "*", 108 | "magento/module-downloadable-import-export": "*", 109 | "magento/module-downloadable-sample-data": "*", 110 | "magento/module-downloadable-staging": "*", 111 | "magento/module-eav-graph-ql": "*", 112 | "magento/module-eway": "*", 113 | "magento/module-fedex": "*", 114 | "magento/module-gift-card-account-graph-ql": "*", 115 | "magento/module-gift-card-graph-ql": "*", 116 | "magento/module-gift-card-staging": "*", 117 | "magento/module-gift-message-graph-ql": "*", 118 | "magento/module-gift-message-staging": "*", 119 | "magento/module-gift-wrapping-graph-ql": "*", 120 | "magento/module-gift-wrapping-staging": "*", 121 | "magento/module-google-adwords": "*", 122 | "magento/module-google-optimizer": "*", 123 | "magento/module-google-optimizer-staging": "*", 124 | "magento/module-graph-ql": "*", 125 | "magento/module-graph-ql-cache": "*", 126 | "magento/module-grouped-import-export": "*", 127 | "magento/module-grouped-product-graph-ql": "*", 128 | "magento/module-grouped-product-sample-data": "*", 129 | "magento/module-grouped-product-staging": "*", 130 | "magento/module-inventory": "*", 131 | "magento/module-inventory-admin-ui": "*", 132 | "magento/module-inventory-advanced-checkout": "*", 133 | "magento/module-inventory-api": "*", 134 | "magento/module-inventory-bundle-import-export": "*", 135 | "magento/module-inventory-bundle-product": "*", 136 | "magento/module-inventory-bundle-product-admin-ui": "*", 137 | "magento/module-inventory-bundle-product-indexer": "*", 138 | "magento/module-inventory-cache": "*", 139 | "magento/module-inventory-catalog": "*", 140 | "magento/module-inventory-catalog-admin-ui": "*", 141 | "magento/module-inventory-catalog-api": "*", 142 | "magento/module-inventory-catalog-frontend-ui": "*", 143 | "magento/module-inventory-catalog-search": "*", 144 | "magento/module-inventory-catalog-search-bundle-product": "*", 145 | "magento/module-inventory-catalog-search-configurable-product": "*", 146 | "magento/module-inventory-configurable-product": "*", 147 | "magento/module-inventory-configurable-product-admin-ui": "*", 148 | "magento/module-inventory-configurable-product-frontend-ui": "*", 149 | "magento/module-inventory-configurable-product-indexer": "*", 150 | "magento/module-inventory-configuration": "*", 151 | "magento/module-inventory-configuration-api": "*", 152 | "magento/module-inventory-distance-based-source-selection": "*", 153 | "magento/module-inventory-distance-based-source-selection-admin-ui": "*", 154 | "magento/module-inventory-distance-based-source-selection-api": "*", 155 | "magento/module-inventory-elasticsearch": "*", 156 | "magento/module-inventory-export-stock": "*", 157 | "magento/module-inventory-export-stock-api": "*", 158 | "magento/module-inventory-graph-ql": "*", 159 | "magento/module-inventory-grouped-product": "*", 160 | "magento/module-inventory-grouped-product-admin-ui": "*", 161 | "magento/module-inventory-grouped-product-indexer": "*", 162 | "magento/module-inventory-import-export": "*", 163 | "magento/module-inventory-in-store-pickup": "*", 164 | "magento/module-inventory-in-store-pickup-admin-ui": "*", 165 | "magento/module-inventory-in-store-pickup-api": "*", 166 | "magento/module-inventory-in-store-pickup-frontend": "*", 167 | "magento/module-inventory-in-store-pickup-graph-ql": "*", 168 | "magento/module-inventory-in-store-pickup-multishipping": "*", 169 | "magento/module-inventory-in-store-pickup-quote": "*", 170 | "magento/module-inventory-in-store-pickup-quote-graph-ql": "*", 171 | "magento/module-inventory-in-store-pickup-sales": "*", 172 | "magento/module-inventory-in-store-pickup-sales-admin-ui": "*", 173 | "magento/module-inventory-in-store-pickup-sales-api": "*", 174 | "magento/module-inventory-in-store-pickup-shipping": "*", 175 | "magento/module-inventory-in-store-pickup-shipping-admin-ui": "*", 176 | "magento/module-inventory-in-store-pickup-shipping-api": "*", 177 | "magento/module-inventory-in-store-pickup-webapi-extension": "*", 178 | "magento/module-inventory-indexer": "*", 179 | "magento/module-inventory-low-quantity-notification": "*", 180 | "magento/module-inventory-low-quantity-notification-admin-ui": "*", 181 | "magento/module-inventory-low-quantity-notification-api": "*", 182 | "magento/module-inventory-multi-dimensional-indexer-api": "*", 183 | "magento/module-inventory-product-alert": "*", 184 | "magento/module-inventory-quote-graph-ql": "*", 185 | "magento/module-inventory-requisition-list": "*", 186 | "magento/module-inventory-reservation-cli": "*", 187 | "magento/module-inventory-reservations": "*", 188 | "magento/module-inventory-reservations-api": "*", 189 | "magento/module-inventory-sales": "*", 190 | "magento/module-inventory-sales-admin-ui": "*", 191 | "magento/module-inventory-sales-api": "*", 192 | "magento/module-inventory-sales-async-order": "*", 193 | "magento/module-inventory-sales-frontend-ui": "*", 194 | "magento/module-inventory-setup-fixture-generator": "*", 195 | "magento/module-inventory-shipping": "*", 196 | "magento/module-inventory-shipping-admin-ui": "*", 197 | "magento/module-inventory-source-deduction-api": "*", 198 | "magento/module-inventory-source-selection": "*", 199 | "magento/module-inventory-source-selection-api": "*", 200 | "magento/module-inventory-swatches-frontend-ui": "*", 201 | "magento/module-inventory-visual-merchandiser": "*", 202 | "magento/module-inventory-wishlist": "*", 203 | "magento/module-layered-navigation-staging": "*", 204 | "magento/module-login-as-customer-graph-ql": "*", 205 | "magento/module-marketplace": "*", 206 | "magento/module-msrp-sample-data": "*", 207 | "magento/module-msrp-staging": "*", 208 | "magento/module-multiple-wishlist-graph-ql": "*", 209 | "magento/module-multishipping": "*", 210 | "magento/module-new-relic-reporting": "*", 211 | "magento/module-newsletter-graph-ql": "*", 212 | "magento/module-offline-shipping-sample-data": "*", 213 | "magento/module-page-builder-analytics": "*", 214 | "magento/module-page-builder-admin-analytics": "*", 215 | "magento/module-payment-graph-ql": "*", 216 | "magento/module-payment-staging": "*", 217 | "magento/module-paypal-graph-ql": "*", 218 | "magento/module-product-links-sample-data": "*", 219 | "magento/module-product-video-staging": "*", 220 | "magento/module-quote-analytics": "*", 221 | "magento/module-quote-graph-ql": "*", 222 | "magento/module-re-captcha-webapi-graph-ql": "*", 223 | "magento/module-related-product-graph-ql": "*", 224 | "magento/module-review-analytics": "*", 225 | "magento/module-review-graph-ql": "*", 226 | "magento/module-review-sample-data": "*", 227 | "magento/module-review-staging": "*", 228 | "magento/module-reward-graph-ql": "*", 229 | "magento/module-reward-staging": "*", 230 | "magento/module-rma-graph-ql": "*", 231 | "magento/module-rma-staging": "*", 232 | "magento/module-sales-analytics": "*", 233 | "magento/module-sales-graph-ql": "*", 234 | "magento/module-sales-rule-sample-data": "*", 235 | "magento/module-sales-rule-staging": "*", 236 | "magento/module-sales-sample-data": "*", 237 | "magento/module-sample-data": "*", 238 | "magento/module-search-staging": "*", 239 | "magento/module-send-friend": "*", 240 | "magento/module-send-friend-graph-ql": "*", 241 | "magento/module-signifyd": "*", 242 | "magento/module-staging": "*", 243 | "magento/module-staging-graph-ql": "*", 244 | "magento/module-staging-page-builder": "*", 245 | "magento/module-store-graph-ql": "*", 246 | "magento/module-swagger": "*", 247 | "magento/module-swagger-webapi": "*", 248 | "magento/module-swagger-webapi-async": "*", 249 | "magento/module-swatches-graph-ql": "*", 250 | "magento/module-swatches-sample-data": "*", 251 | "magento/module-target-rule-graph-ql": "*", 252 | "magento/module-tax-graph-ql": "*", 253 | "magento/module-tax-import-export": "*", 254 | "magento/module-tax-sample-data": "*", 255 | "magento/module-theme-graph-ql": "*", 256 | "magento/module-theme-sample-data": "*", 257 | "magento/module-two-factor-auth": "*", 258 | "magento/module-ups": "*", 259 | "magento/module-url-rewrite-graph-ql": "*", 260 | "magento/module-usps": "*", 261 | "magento/module-vault-graph-ql": "*", 262 | "magento/module-version": "*", 263 | "magento/module-versions-cms-url-rewrite-graph-ql": "*", 264 | "magento/module-weee-graph-ql": "*", 265 | "magento/module-weee-staging": "*", 266 | "magento/module-widget-sample-data": "*", 267 | "magento/module-wishlist-analytics": "*", 268 | "magento/module-wishlist-graph-ql": "*", 269 | "magento/module-wishlist-sample-data": "*", 270 | "magento/module-worldpay": "*", 271 | "magento/page-builder": "*", 272 | "magento/sample-data-media": "*", 273 | "paypal/module-braintree": "*", 274 | "paypal/module-braintree-core": "*", 275 | "paypal/module-braintree-graph-ql": "*", 276 | "temando/module-shipping": "*", 277 | "temando/module-shipping-m2": "*", 278 | "temando/module-shipping-remover": "*", 279 | "vertex/module-address-validation": "*", 280 | "vertex/module-tax": "*", 281 | "vertex/module-tax-staging": "*", 282 | "vertex/product-magento-module": "*", 283 | "vertex/sdk": "*", 284 | "vertexinc/module-tax-staging": "*", 285 | "vertexinc/product-magento-module": "*", 286 | "vertexinc/product-magento-module-commerce": "*", 287 | "yotpo/magento2-module-yotpo-reviews": "*", 288 | "yotpo/magento2-module-yotpo-reviews-bundle": "*" 289 | } 290 | } 291 | --------------------------------------------------------------------------------