Patch Apply Apply diff files to text programmatically Usage $patcher = new PatchApply\Patcher(); $output = $patcher->apply($input, $diff);