fooman/composer-magento2-optimizations

This package is abandoned and no longer maintained. No replacement package was suggested.

Composer plugin to improve composer performance for Magento 2 projects

Installs: 28 766

Dependents: 0

Suggesters: 0

Security: 0

Stars: 33

Watchers: 2

Forks: 2

Open Issues: 1

Type:composer-plugin

dev-master 2021-03-11 22:21 UTC

This package is auto-updated.

Last update: 2023-11-12 04:06:00 UTC


README

Build Status

About

Adapted for Magento 2 from zaporylie/composer-drupal-optimizations This composer-plugin contains a set of improvements that makes running heavy duty composer commands (i.e. composer update or composer require) much faster.

Installation

composer require --dev fooman/composer-magento2-optimizations:dev-master

No configuration required 🎊

Optimizations

  • Reduce memory usage and CPU usage by removing legacy symfony tags

Benchmark

Before

Memory usage: 351.1MiB (peak: 1092.15MiB), time: 17.23s

After

Memory usage: 268.44MiB (peak: 345.67MiB), time: 8.67s

Configuration

If no configuration is provided this package will provide sensible defaults based on the Magento 2 version constraint in the root composer.json file. Default configuration should cover 99% of the cases. However, in case you want to manually specify the tags that should be filtered out you are welcome to use the extra section:

{
  "extra": {
    "composer-magento2-optimizations": {
      "require": {
        "symfony/symfony": ">4.1"
      }
    }
  }
}

All you have to do is to make sure your Magento project constraint in the root composer.json is set to magento/project-community-edition: 2.3.0/magento/project-enterprise-edition: 2.3.0/magento/magento-cloud-metapackage: 2.3.0 or above.

Credits

  • Symfony community - idea and development; Special thanks to @nicolas-grekas
  • Jakub Piasecki - port and maintenance