A powerful class which allows to create and merge unified diff patches into any file. Fully written in PHP, uses the GNU standard unified diff format and allows any operation (creation/update/deletion).
Be the first to post a text review of PHP unified diff patcher. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Version 0.1.1 * fixed a bug in lines splitting of huge diff files (e.g. those created by SVN) which caused unexpected EOF errors
The first release v0.1 of the PhpPatcher class has come out. The class already allows the merging of unified diff patches (even on multiple files) and also deletes files following the diff syntax. The useful methods are PhpPatcher::Merge() and PhpPatcher::ApplyPatch() which respectively parse the source and destination files and commit the changes to disk. Enjoy it.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?