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.1.0(7mo ago)02MITPHPPHP &gt;=8.0

Since Oct 10Pushed 7mo 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 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#composer-patches-generate-command)

Generate .patch files with a single command.

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-command

# 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": {
                   "description": "patches/vendor_example/UserFactory.patch"
               }
           }
       }
    }
    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance65

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

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

Unknown

Total

1

Last Release

214d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f1b9b70096a47081ffc424cab0794c5a9b11fa8260ecb06f8af5e1fcb49fd8a?d=identicon)[haase-fabian](/maintainers/haase-fabian)

---

Top Contributors

[![haase-fabian](https://avatars.githubusercontent.com/u/55744962?v=4)](https://github.com/haase-fabian "haase-fabian (1 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

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)[civicrm/cv

CLI tool for CiviCRM

4219.8k](/packages/civicrm-cv)

PHPackages © 2026

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