Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add Magento Cloud Jul 15, 2019
tests Adaptation for Magento 2.3+ Jun 12, 2019
.gitignore Ignore phpunit cache Feb 16, 2019
.travis.yml Correct config Jun 12, 2019 Make it explicit in the title that only 2.3.0+ projects will benefit Jul 15, 2019
phpunit.xml.dist Add read tests Feb 14, 2019

Optimize Composer for Magento 2.3.0+ projects

Build Status


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.


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

No configuration required 🎊


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



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


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


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.


  • Symfony community - idea and development; Special thanks to @nicolas-grekas
  • Jakub Piasecki - port and maintenance
You can’t perform that action at this time.