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

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

cweagans/composer-patches
=========================

Provides a way to patch Composer packages.

2.0.0(6mo ago)1.7k94.2M—9.8%261[43 issues](https://github.com/cweagans/composer-patches/issues)[9 PRs](https://github.com/cweagans/composer-patches/pulls)20BSD-3-ClausePHPPHP &gt;=8.0.0

Since Apr 23Pushed 5d ago28 watchersCompare

[ Source](https://github.com/cweagans/composer-patches)[ Packagist](https://packagist.org/packages/cweagans/composer-patches)[ GitHub Sponsors](https://github.com/cweagans)[ RSS](/packages/cweagans-composer-patches/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (12)Versions (25)Used By (20)

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

[](#composer-patches)

[![Build status](https://github.com/cweagans/composer-patches/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/cweagans/composer-patches/actions/workflows/ci.yml/badge.svg?branch=main)[![Coverage Status](https://camo.githubusercontent.com/77448169a223503566ee3af6fc8f952a4d2ee3b887f3bd06c38b67821cfdc7f1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6377656167616e732f636f6d706f7365722d706174636865732f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/cweagans/composer-patches?branch=main)

Simple patches plugin for Composer. Applies a patch from a local or remote file to any dependency installed by Composer.

- **Documentation**:
- **Issues**:
- **Support**:

###  Health Score

77

—

ExcellentBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community58

Growing community involvement

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~183 days

Recently: every ~261 days

Total

22

Last Release

200d ago

Major Versions

1.x-dev → 2.0.0-beta12023-07-01

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

1.4.0PHP &gt;=5.3.0

2.0.0-beta1PHP &gt;=8.0.0

### Community

Maintainers

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

---

Top Contributors

[![cweagans](https://avatars.githubusercontent.com/u/101590?v=4)](https://github.com/cweagans "cweagans (352 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (83 commits)")[![danepowell](https://avatars.githubusercontent.com/u/1984514?v=4)](https://github.com/danepowell "danepowell (8 commits)")[![fabianx-ai](https://avatars.githubusercontent.com/u/354804?v=4)](https://github.com/fabianx-ai "fabianx-ai (7 commits)")[![LionsAd](https://avatars.githubusercontent.com/u/354804?v=4)](https://github.com/LionsAd "LionsAd (7 commits)")[![fredden](https://avatars.githubusercontent.com/u/334786?v=4)](https://github.com/fredden "fredden (5 commits)")[![blankse](https://avatars.githubusercontent.com/u/998558?v=4)](https://github.com/blankse "blankse (4 commits)")[![ukgodzuki](https://avatars.githubusercontent.com/u/240904750?v=4)](https://github.com/ukgodzuki "ukgodzuki (3 commits)")[![Sweetchuck](https://avatars.githubusercontent.com/u/591103?v=4)](https://github.com/Sweetchuck "Sweetchuck (3 commits)")[![drupol](https://avatars.githubusercontent.com/u/252042?v=4)](https://github.com/drupol "drupol (3 commits)")[![Leksat](https://avatars.githubusercontent.com/u/989015?v=4)](https://github.com/Leksat "Leksat (3 commits)")[![waleedq](https://avatars.githubusercontent.com/u/292332?v=4)](https://github.com/waleedq "waleedq (2 commits)")[![dan2k3k4](https://avatars.githubusercontent.com/u/158704?v=4)](https://github.com/dan2k3k4 "dan2k3k4 (2 commits)")[![grasmash](https://avatars.githubusercontent.com/u/539205?v=4)](https://github.com/grasmash "grasmash (2 commits)")[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (2 commits)")[![mmenozzi](https://avatars.githubusercontent.com/u/1199914?v=4)](https://github.com/mmenozzi "mmenozzi (2 commits)")[![david-garcia-garcia](https://avatars.githubusercontent.com/u/9599352?v=4)](https://github.com/david-garcia-garcia "david-garcia-garcia (1 commits)")[![geerlingguy](https://avatars.githubusercontent.com/u/481677?v=4)](https://github.com/geerlingguy "geerlingguy (1 commits)")[![Ayesh](https://avatars.githubusercontent.com/u/811553?v=4)](https://github.com/Ayesh "Ayesh (1 commits)")[![greg-1-anderson](https://avatars.githubusercontent.com/u/612191?v=4)](https://github.com/greg-1-anderson "greg-1-anderson (1 commits)")

---

Tags

composerphp

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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)
