# cweagans/composer-patches

Simple patches plugin for Composer

Repository: https://github.com/cweagans/composer-patches
Canonical: https://ross.abutalabs.com/products/composer-patches
Homepage: https://www.cweagans.net/project/composer-patches
Language: PHP
License: BSD-3-Clause
License Family: permissive
Topics: composer, php
Last push: 2026-08-10T01:43:48+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 22, longevity 100
- inputs: {"age_days": 4151, "days_push": 24, "days_rel": 307, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1723, forks 264 (observed 2026-08-28T04:05:27.860371+00:00)

## What it is
A Composer plugin that applies patches from local or remote files to any Composer-installed dependency. It is widely used in PHP CMS communities such as Drupal, TYPO3, Magento, and Yii.

## Use cases
- apply patches to composer dependencies
- patch a vendor package without forking it
- manage patches across a team of PHP developers
- apply remote patch files to dependencies
- maintain patched dependencies in Drupal projects
- reproducible builds with patched composer packages

## When to choose
- you need to patch a Composer dependency and keep the patch managed in version control
- you work in PHP ecosystems like Drupal or Magento where dependency patching is standard practice
- you want declarative, reproducible patch application during composer install

## When to avoid
- you can upstream your fix and simply update the dependency instead
- you are not using Composer for dependency management
- you need to patch packages outside the PHP/Composer ecosystem

## Facets
- artifact type: plugin
- maturity: active
- function: plugin-system, package-manager, developer-tools
- domain: developer-tools
- platform: cli, cross-platform
- tags: composer, patching, php, dependency-management, automation

## Member repositories
- cweagans/composer-patches (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:27.860371+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:33:57.569419+00:00, confidence not recorded.
  - readme: https://github.com/cweagans/composer-patches (fetched 2026-08-28T04:05:27.860371+00:00, sha cdf2847b4a79)
  - homepage: https://www.cweagans.net/project/composer-patches (fetched 2026-08-29T11:09:32.490651+00:00, sha 2af4bb03fff3)
  - site_page: https://www.cweagans.net/about-me (fetched 2026-08-29T11:09:32.500206+00:00, sha 9031e9f75652)
  - site_page: https://docs.cweagans.net/composer-patches (fetched 2026-08-29T11:09:32.502202+00:00, sha 5b4816dfdbcb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
