PHPackages                             fhaase/composer-patches-generate - 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. [CLI &amp; Console](/categories/cli)
4. /
5. fhaase/composer-patches-generate

ActiveLibrary[CLI &amp; Console](/categories/cli)

fhaase/composer-patches-generate
================================

Command to create composer patches via cli

v0.2.1(1mo ago)04MITPHPPHP &gt;=8.0

Since Oct 10Pushed 1mo agoCompare

[ Source](https://github.com/haase-fabian/composer-patches-generate)[ Packagist](https://packagist.org/packages/fhaase/composer-patches-generate)[ RSS](/packages/fhaase-composer-patches-generate/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Composer Patches Generate
=========================

[](#composer-patches-generate)

Introduction
------------

[](#introduction)

A standalone command-line utility to generate patches for [cweagans/composer-patches](https://docs.cweagans.net/composer-patches/).

Effortlessly capture local modifications to Composer dependencies, commit them to your project, and ensure your custom fixes are reliably applied across all environments during `composer install`.

Install
-------

[](#install)

Make sure `git` and `find` are installed.

```
git version
-> git version 1.51.0

find --version
-> find (GNU findutils) 4.10.0-dirty
```

```
composer require --dev fhaase/composer-patches-generate

# Recommended to apply patches on install
composer require cweagans/composer-patches
```

Usage
-----

[](#usage)

### Generate or update patch files

[](#generate-or-update-patch-files)

1. Create a copy of a file with `*.old` suffix inside one of the composer packages
2. Modify the original file
    There should now be files like this: ```
    UserFactory.php
    UserFactory.php.old

    ```
3. Run the command with the package name
    `vendor/bin/composer-patches-generate vendor/example`
4. When prompted, you can give a short description to generate configuration for `cweagans/composer-patches` \\ ```
    {
       "extra": {
           "patches": {
               "vendor/example": {
                   "": "patches/vendor_example/UserFactory.patch"
               }
           }
       }
    }
    ```
5. Repeat Step 3 to update the patches when further changes are necessary.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance94

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Every ~78 days

Total

4

Last Release

32d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/55744962?v=4)[haase-fabian](/maintainers/haase-fabian)[@haase-fabian](https://github.com/haase-fabian)

---

Top Contributors

[![haase-fabian](https://avatars.githubusercontent.com/u/55744962?v=4)](https://github.com/haase-fabian "haase-fabian (4 commits)")

---

Tags

composer-patches

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.3k](/packages/friendsofphp-php-cs-fixer)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)

PHPackages © 2026

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