patch/work

Change packages using patch files during composer install

Installs: 142

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:composer-plugin

0.2.0 2019-11-09 21:19 UTC

This package is auto-updated.

Last update: 2024-04-10 07:21:35 UTC


README

Supports the "patchwork" package-type in composer

Please use the patch packages directly!

Usage

  1. Choose a patch here: https://packagist.org/packages/patch/work/dependents
  2. Add it to requirements
  3. Set path to patch mapping (in "extra" - "patchwork" section)
  4. composer install
  5. Profit

Example:

{
  "name": "myown/thing",
  "require": {
    "johnpbloch/wordpress": "5.2.*",
    "patch/wp-remove-hello": "0.1.*"
  },
  "extra": {
    "patchwork": {
      "wordpress/": "patch/wp-remove-hello"
    }
  }
}

The extra.patchwork section can also look like this:

  "extra": {
    "patchwork": {

      "src/": "patch/wp-*",

      "some/path/": [
        "patch/wp-*",
        "patch/mage-*",
        "myown/patch",
      ]

    }
  }