PHPackages                             burdamagazinorg/composer-patches - 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. burdamagazinorg/composer-patches

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

burdamagazinorg/composer-patches
================================

Provides a way to patch Composer packages.

1.5.0(10y ago)017BSDPHPPHP &gt;=5.3.0

Since Apr 23Pushed 10y ago2 watchersCompare

[ Source](https://github.com/BurdaMagazinOrg/composer-patches)[ Packagist](https://packagist.org/packages/burdamagazinorg/composer-patches)[ RSS](/packages/burdamagazinorg-composer-patches/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

composer-patches
================

[](#composer-patches)

Simple patches plugin for Composer. Applies a patch from a local or remote file to any package required with composer.

Usage
-----

[](#usage)

Example composer.json:

```
{
  "require": {
    "cweagans/composer-patches": "~1.0",
    "drupal/drupal": "8.0.*@dev"
  },
  "config": {
    "preferred-install": "source"
  },
  "extra": {
    "patches": {
      "drupal/drupal": {
        "Add startup configuration for PHP server": "https://www.drupal.org/files/issues/add_a_startup-1543858-30.patch"
      }
    }
  }
}

```

Using an external patch file
----------------------------

[](#using-an-external-patch-file)

Instead of a patches key in your root composer.json, use a patches-file key.

```
{
  "require": {
    "cweagans/composer-patches": "~1.0",
    "drupal/drupal": "8.0.*@dev"
  },
  "config": {
    "preferred-install": "source"
  },
  "extra": {
    "patches-file": "local/path/to/your/composer.patches.json"
  }
}

```

Then your composer.patches.json should look like this:

```
{
  "patches": {
    "vendor/project": {
      "Patch title": "http://example.com/url/to/patch.patch"
    }
  }
}

```

Difference between this and netresearch/composer-patches-plugin
---------------------------------------------------------------

[](#difference-between-this-and-netresearchcomposer-patches-plugin)

- This plugin is much more simple to use and maintain
- This plugin doesn't require you to specify which package version you're patching
- This plugin is easy to use with Drupal modules (which don't use semantic versioning).
- This plugin will gather patches from all dependencies and apply them as if they were in the root composer.json

Credits
-------

[](#credits)

A ton of this code is adapted or taken straight from , which is abandoned in favor of , which is (IMHO) overly complex and difficult to use.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 68.6% 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 ~68 days

Recently: every ~84 days

Total

6

Last Release

3746d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.4.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfe90fee04d5ef4d2bd1ea46dc65f6aec95b2486e2ce47f3439b3e06eb2f37dd?d=identicon)[dbosen](/maintainers/dbosen)

---

Top Contributors

[![cweagans](https://avatars.githubusercontent.com/u/101590?v=4)](https://github.com/cweagans "cweagans (35 commits)")[![fabianx-ai](https://avatars.githubusercontent.com/u/354804?v=4)](https://github.com/fabianx-ai "fabianx-ai (6 commits)")[![ukgodzuki](https://avatars.githubusercontent.com/u/240904750?v=4)](https://github.com/ukgodzuki "ukgodzuki (3 commits)")[![chrfritsch](https://avatars.githubusercontent.com/u/731161?v=4)](https://github.com/chrfritsch "chrfritsch (3 commits)")[![yched](https://avatars.githubusercontent.com/u/193080?v=4)](https://github.com/yched "yched (1 commits)")[![dave1010](https://avatars.githubusercontent.com/u/50682?v=4)](https://github.com/dave1010 "dave1010 (1 commits)")[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (1 commits)")[![pivulic](https://avatars.githubusercontent.com/u/7068697?v=4)](https://github.com/pivulic "pivulic (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/burdamagazinorg-composer-patches/health.svg)

```
[![Health](https://phpackages.com/badges/burdamagazinorg-composer-patches/health.svg)](https://phpackages.com/packages/burdamagazinorg-composer-patches)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M955](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M531](/packages/drupal-core-composer-scaffold)[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.

3014.6M24](/packages/vaimo-composer-patches)[drupal/core-project-message

Adds a message after Composer installation.

2124.0M195](/packages/drupal-core-project-message)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M335](/packages/phpro-grumphp-shim)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

576.1M114](/packages/automattic-jetpack-autoloader)

PHPackages © 2026

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