User Tools

Site Tools


git_composer_patch

Git Composer Patch

Patch a composer package

Get Patch file

Go to the Pull Request and add .patch to the URL and download this patch file

https://github.com/codesource/typo3-cdsrc_bepwreset/pull/18.patch

Install cweagans/composer-patches package

composer require cweagans/composer-patches

Add path to ''extras'' section in your composer.json

    "patches": {
      "typo3-ter/cdsrc-bepwreset": {
        "Add TYPO3 v9.5 compatibility": "https://patch-diff.githubusercontent.com/raw/codesource/typo3-cdsrc_bepwreset/pull/18.patch"
      }
    },

Run composer install and all the magic is done.

git_composer_patch.txt · Last modified: 2018/10/05 13:33 by admin