PHPackages                             nathandentzau/composer-patches-dev - 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. nathandentzau/composer-patches-dev

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

nathandentzau/composer-patches-dev
==================================

Apply patches to packages while Composer is in dev mode

1.0.0(8y ago)13.2k1MITPHPPHP &gt;=7.1.0

Since Mar 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/nathandentzau/composer-patches-dev)[ Packagist](https://packagist.org/packages/nathandentzau/composer-patches-dev)[ RSS](/packages/nathandentzau-composer-patches-dev/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Composer Patches Dev
====================

[](#composer-patches-dev)

[![Build Status](https://camo.githubusercontent.com/0b985317b5c57c8161feacbfca1ffac263fa4c14080da678f569c9e9a6bb37b9/68747470733a2f2f7472617669732d63692e6f72672f6e617468616e64656e747a61752f636f6d706f7365722d706174636865732d6465762e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nathandentzau/composer-patches-dev) [![Coverage Status](https://camo.githubusercontent.com/a8c8e8656c0d89866df61468969efbcfbc719982c708a25a481a3b510664bbe9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e617468616e64656e747a61752f636f6d706f7365722d706174636865732d6465762f62616467652e7376673f6272616e63683d25314225354233326d6d61737465722531422535426d)](https://coveralls.io/github/nathandentzau/composer-patches-dev?branch=%1B%5B32mmaster%1B%5Bm)

This composer plugin extends the [cweagans/composer-patches](https://github.com/cweagans/composer-patches) plugin to allow patches to be applied to packages when composer is in dev mode (without `--no-dev` passed `composer install` or `composer update`). This is useful to patch certain packages locally and not in a production environment.

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

[](#installation)

```
$ composer require nathandentzau/composer-patches-dev
```

Usage
-----

[](#usage)

Add a `patches-dev` definition to either the `extras` array in `composer.json`or in a specified [external patch file](https://github.com/cweagans/composer-patches/blob/master/README.md#using-an-external-patch-file).

### Applying patches defined in `patches-dev`

[](#applying-patches-defined-in-patches-dev)

Run composer install or update without the `--no-dev` flag.

```
$ composer install
```

or

```
$ composer update
```

### Prevent applying patches defined in `patches-dev`

[](#prevent-applying-patches-defined-in-patches-dev)

Run composer install or update with the `--no-dev` flag.

```
$ composer install --no-dev
```

or

```
$ composer update --no-dev
```

### Example: composer.json

[](#example-composerjson)

```
{
    "name": "nathandentzau/composer-patches-dev-test",
    "description": "A test project for nathandentzau/composer-patches-dev",
    "type": "project",
    "license": "MIT",
    "authors": [
        {
            "name": "Nathan Dentzau",
            "email": "nathan.dentzau@gmail.com"
        }
    ],
    "require": {
        "drupal/core": "8.5.0"
    },
    "require-dev": {
        "nathandentzau/composer-patches-dev": "^1.0"
    },
    "extra": {
        "patches-dev": {
            "drupal/core": {
                "Suppress filesystem errors with BindFS in Drupal core": "https://gist.githubusercontent.com/nathandentzau/355f3476b13cab38294ebc0207cedac0/raw/25c312a2814a7d62c812796c91099a091972b37c/suppress-filesystem-errors-with-bindfs-in-drupal-core.patch"
            }
        }
    }
}
```

Error handling
--------------

[](#error-handling)

Please refer to the [error handling documentation](https://github.com/cweagans/composer-patches/blob/master/README.md#error-handling) for [cweagans/composer-patches](https://github.com/cweagans/composer-patches).

Why is this a seperate plugin?
------------------------------

[](#why-is-this-a-seperate-plugin)

The [cweagans/composer-patches](https://github.com/cweagans/composer-patches) plugin is on a feature freeze for its current stable version. The next version is actively being worked on by its maintainer. This feature will be merged into version 2.x of composer-patches when the time is right. After that this package will be discontinued.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3028d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15371196?v=4)[Nathan Dentzau](/maintainers/nathandentzau)[@nathandentzau](https://github.com/nathandentzau)

---

Top Contributors

[![nathandentzau](https://avatars.githubusercontent.com/u/15371196?v=4)](https://github.com/nathandentzau "nathandentzau (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nathandentzau-composer-patches-dev/health.svg)

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

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74794.9M945](/packages/symfony-runtime)[civicrm/civicrm-core

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

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

A flexible Composer project scaffold builder.

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

Adds a message after Composer installation.

2124.0M194](/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.6M334](/packages/phpro-grumphp-shim)

PHPackages © 2026

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