PHPnews.io

How to Patch a Package in Vendor, Yet Allow its Updates

Written by Tomáš Votruba / Original link on Jul. 2, 2020

While working with legacy code upgrades, we often need to fix a line or two in 3rd party package in `/vendor`. You can fork it, but by that, you **take manual responsibility** for all the package updates. You can copy a package locally, which is faster, but **disables package updates**. Or... you can use "composer patches"?

tomasvotruba

« Cleaning Lady Notes: From Class Mess to PSR-4 Step by Step With Confidence - How Will Programming look like in 2025? »