PHPackages                             codebymikey/composer-vendor-patch - 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. codebymikey/composer-vendor-patch

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

codebymikey/composer-vendor-patch
=================================

Provides a Composer plugin to generate patches based on local changes to a vendor package.

02PHP

Since Oct 22Pushed 6mo agoCompare

[ Source](https://github.com/codebymikey/composer-vendor-patch)[ Packagist](https://packagist.org/packages/codebymikey/composer-vendor-patch)[ RSS](/packages/codebymikey-composer-vendor-patch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

codebymikey/composer-vendor-patch
=================================

[](#codebymikeycomposer-vendor-patch)

*Composer vendor patch* is a [composer](https://getcomposer.org/) plugin that allows users to easily generate patches based on local changes to a vendor package.

The idea is to use the generated patches in tandem with the [composer-patches](https://github.com/cweagans/composer-patches) plugin.

How to Use
----------

[](#how-to-use)

Simply run `composer generate-vendor-patches ` and the patches for said package should be generated.

### Configuration

[](#configuration)

The default plugin configurations are as follows:

```
{
  // composer.json
  "extra": {
    "composer-vendor-patch": {
      "patch-dir": "patches",
      "patch-format": "{vendor}__{name}.diff"
    }
  }
}
```

Where `patch-dir` and `patch-format` supports the following placeholders:

- `{vendor}` - The package vendor namespace.
- `{name}` - The package name.
- `{version}` - The package version.
- `{type}` - The type of the package.
- `{sourceReference}` - The source reference (may be empty).
- `{distReference}` - The dist reference (may be empty).
- `{distSha1Checksum}` - The dist sha1 reference (may be empty).

However, these configurations may be overridden for specific packages if necessary:

```
{
  // composer.json
  "extra": {
    "composer-vendor-patch": {
      "patch-dir": {
        "vendor/package-1": "patches",
        "vendor/package-2": "second-patches-dir/${vendor}",
      },
      "patch-format": {
        "vendor/package-1": "{vendor}__{name}.diff"
      }
    }
  }
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance46

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![codebymikey](https://avatars.githubusercontent.com/u/9484406?v=4)](https://github.com/codebymikey "codebymikey (2 commits)")

### Embed Badge

![Health badge](/badges/codebymikey-composer-vendor-patch/health.svg)

```
[![Health](https://phpackages.com/badges/codebymikey-composer-vendor-patch/health.svg)](https://phpackages.com/packages/codebymikey-composer-vendor-patch)
```

###  Alternatives

[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)

PHPackages © 2026

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