Download the PHP package getintent/php-diff without Composer
On this page you can find all versions of the php package getintent/php-diff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getintent/php-diff
More information about getintent/php-diff
Files in getintent/php-diff
Package php-diff
Short Description A comprehensive library for generating differences between two hashable objects (strings or arrays).
License
Informations about the package php-diff
PHP Diff Class
Introduction
A comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences can be rendered in all of the standard formats including:
- Unified
- Context
- Inline HTML
- Side by Side HTML
The logic behind the core of the diff engine (ie, the sequence matcher) is primarily based on the Python difflib package. The reason for doing so is primarily because of its high degree of accuracy.
Example Use
A quick usage example can be found in the example/ directory and under example.php.
More complete documentation will be available shortly.
Merge files using jQuery
Xiphe has build a jQuery plugin with that you can merge the compared files. Have a look at jQuery-Merge-for-php-diff.
Todo
- Ability to ignore blank line changes
- 3 way diff support
- Performance optimizations
License (BSD License)
Copyright (c) 2009 Chris Boulton [email protected] All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the Chris Boulton nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.