PHPackages                             zaporylie/composer-drupal-optimizations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zaporylie/composer-drupal-optimizations

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

zaporylie/composer-drupal-optimizations
=======================================

Composer plugin to improve composer performance for Drupal projects

1.2.0(5y ago)14010.0M—6.5%16[3 issues](https://github.com/zaporylie/composer-drupal-optimizations/issues)20GPL-2.0-or-laterPHPCI failing

Since Jul 15Pushed 5y ago11 watchersCompare

[ Source](https://github.com/zaporylie/composer-drupal-optimizations)[ Packagist](https://packagist.org/packages/zaporylie/composer-drupal-optimizations)[ RSS](/packages/zaporylie-composer-drupal-optimizations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (13)Used By (20)

Optimize Composer for Drupal projects
=====================================

[](#optimize-composer-for-drupal-projects)

[![Build Status](https://camo.githubusercontent.com/ad6c7d09f1209d22830529df5a51655779265b5bc74467db657b653007f9f554/68747470733a2f2f7472617669732d63692e6f72672f7a61706f72796c69652f636f6d706f7365722d64727570616c2d6f7074696d697a6174696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zaporylie/composer-drupal-optimizations)[![Packagist](https://camo.githubusercontent.com/0564052d6c76f520e0b68ef5fb18a35d022a253585d466f3946a5cecd4fa8da7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a61706f72796c69652f636f6d706f7365722d64727570616c2d6f7074696d697a6174696f6e732e737667)](https://packagist.org/packages/zaporylie/composer-drupal-optimizations)

About
=====

[](#about)

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 2

[](#composer-2)

Since Composer 2 is quite fast by default, this plugin is not needed, and will be disabled if Composer 2 is detected. If everyone involved in development of a project is using Composer 2, this plugin becomes redundant and can be removed from the list of project dependencies.

Installation
============

[](#installation)

```
composer require zaporylie/composer-drupal-optimizations:^1.1 --dev
```

No configuration required 🎊

Optimizations
=============

[](#optimizations)

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

Benchmark
=========

[](#benchmark)

Following numbers are for clean  without and with this plugin.

Before:

```
Memory usage: 323.19MB (peak: 1121.09MB), time: 13.68s

```

After:

```
Memory usage: 238.66MB (peak: 297.17MB), time: 4.84s

```

> php 7.2, macOS High Sierra, i7, 16GB RAM

Configuration
=============

[](#configuration)

If no configuration is provided this package will provide sensible defaults based on the `drupal/core` 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-drupal-optimizations": {
      "require": {
        "symfony/symfony": ">3.4"
      }
    }
  }
}
```

***Recommendation note:***Use defaults (skip config above) if possible - this package will be maintained throughout the Drupal's lifecycle in order to optimize legacy constraints in parallel with Drupal's requirements.

All you have to do is to make sure your drupal core constraint in the root composer.json is set to `drupal/core: ^8.5` or above. If you use a Drupal distribution, be sure to explicitly require `drupal/core` in your own project as well.

Credits
=======

[](#credits)

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

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity61

Solid adoption and visibility

Community35

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 91.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~207 days

Total

7

Last Release

2034d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1690685?v=4)[Jakub Piasecki](/maintainers/zaporylie)[@zaporylie](https://github.com/zaporylie)

---

Top Contributors

[![zaporylie](https://avatars.githubusercontent.com/u/1690685?v=4)](https://github.com/zaporylie "zaporylie (41 commits)")[![danepowell](https://avatars.githubusercontent.com/u/1984514?v=4)](https://github.com/danepowell "danepowell (2 commits)")[![MPParsley](https://avatars.githubusercontent.com/u/1823998?v=4)](https://github.com/MPParsley "MPParsley (1 commits)")[![neclimdul](https://avatars.githubusercontent.com/u/82823?v=4)](https://github.com/neclimdul "neclimdul (1 commits)")

---

Tags

drupalhacktoberfest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zaporylie-composer-drupal-optimizations/health.svg)

```
[![Health](https://phpackages.com/badges/zaporylie-composer-drupal-optimizations/health.svg)](https://phpackages.com/packages/zaporylie-composer-drupal-optimizations)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
