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

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

jobiqo/composer-patches-install
===============================

Composer plugin that detects patches.lock.json changes and triggers re-patching of affected packages.

1.0.1(3mo ago)237.5k↓32.6%GPL-2.0-or-laterPHPPHP ^8.1

Since Mar 10Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jobiqo/composer-patches-install)[ Packagist](https://packagist.org/packages/jobiqo/composer-patches-install)[ RSS](/packages/jobiqo-composer-patches-install/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

jobiqo/composer-patches-install
===============================

[](#jobiqocomposer-patches-install)

A Composer plugin that detects `patches.lock.json` changes and automatically triggers re-patching of affected packages. See [cweagans/composer-patches#583](https://github.com/cweagans/composer-patches/issues/583)

This is relevant for sites that use a `git pull && composer install` workflow. With composer-patches 2.x this is not sufficient anymore to get any `patches.lock.json` changes installed. The workaround is `git pull && composer install && composer patches-repatch`, but has downsides:

- Local development: developers need to remember a much longer command when they update their checkout, `composer install` is not enough anymore.
- Longer production downtimes than necessary. A full `composer patches-repatch` triggers *all* patched dependencies to be patched again, which is slow.

What it does internally
-----------------------

[](#what-it-does-internally)

1. On a **fresh install** (no `vendor/` directory), pre-initialises the `patches.lock.json` cache so the first `composer install` does not trigger unnecessary reinstalls.
2. On subsequent **composer install**, compares `patches.lock.json` against the cached copy in `vendor/composer/patches.lock.json`.
3. Re-installs only the packages whose patch hashes have changed, so patches are always applied consistently.
4. Supports `--no-dev` mode: dev-only packages are skipped when running without dev dependencies.

Requirements
------------

[](#requirements)

- PHP 8.1+
- Composer 2.x
- [`cweagans/composer-patches`](https://github.com/cweagans/composer-patches) ^2.0

Installation
------------

[](#installation)

```
composer require jobiqo/composer-patches-install
```

Usage
-----

[](#usage)

Generate a `patches.lock.json` file with composer-patches in the root of your project (next to `composer.json`). The plugin reads the `patches` key and its `sha256` hashes (as written by `cweagans/composer-patches` v2) to decide which packages need to be reinstalled.

Run `composer install` and patch changes will be picked up automatically.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance80

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

109d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/213229?v=4)[Klaus Purer](/maintainers/klausi)[@klausi](https://github.com/klausi)

---

Top Contributors

[![klausi](https://avatars.githubusercontent.com/u/213229?v=4)](https://github.com/klausi "klausi (11 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74694.9M938](/packages/symfony-runtime)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k37](/packages/civicrm-civicrm-core)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M526](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.0M193](/packages/drupal-core-project-message)[sandersander/composer-link

Adds ability to link local packages for development with composer

94441.4k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

284.6M333](/packages/phpro-grumphp-shim)

PHPackages © 2026

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