|
| 1 | +PHP Diff Class |
| 2 | +-------------- |
| 3 | + |
| 4 | +Introduction |
| 5 | +------------ |
| 6 | +A comprehensive library for generating differences between |
| 7 | +two hashable objects (strings or arrays). Generated differences can be |
| 8 | +rendered in all of the standard formats including: |
| 9 | + * Unified |
| 10 | + * Context |
| 11 | + * Inline HTML |
| 12 | + * Side by Side HTML |
| 13 | + |
| 14 | +The logic behind the core of the diff engine (ie, the sequence matcher) |
| 15 | +is primarily based on the Python difflib package. The reason for doing |
| 16 | +so is primarily because of its high degree of accuracy. |
| 17 | + |
| 18 | +Example Use |
| 19 | +----------- |
| 20 | +A quick usage example can be found in the example/ directory and under |
| 21 | +example.php. |
| 22 | + |
| 23 | +More complete documentation will be available shortly. |
| 24 | + |
| 25 | +Merge files using jQuery |
| 26 | +------------------------ |
| 27 | +Xiphe has build a jQuery plugin with that you can merge the compared |
| 28 | +files. Have a look at [jQuery-Merge-for-php-diff](https://github.com/Xiphe/jQuery-Merge-for-php-diff). |
| 29 | + |
| 30 | +Todo |
| 31 | +---- |
| 32 | + * Ability to ignore blank line changes |
| 33 | + * 3 way diff support |
| 34 | + * Performance optimizations |
| 35 | + |
| 36 | +License (BSD License) |
| 37 | +--------------------- |
| 38 | +Copyright (c) 2009 Chris Boulton < [email protected]> |
| 39 | +All rights reserved. |
| 40 | + |
| 41 | +Redistribution and use in source and binary forms, with or without |
| 42 | +modification, are permitted provided that the following conditions are met: |
| 43 | + |
| 44 | + - Redistributions of source code must retain the above copyright notice, |
| 45 | + this list of conditions and the following disclaimer. |
| 46 | + - Redistributions in binary form must reproduce the above copyright notice, |
| 47 | + this list of conditions and the following disclaimer in the documentation |
| 48 | + and/or other materials provided with the distribution. |
| 49 | + - Neither the name of the Chris Boulton nor the names of its contributors |
| 50 | + may be used to endorse or promote products derived from this software |
| 51 | + without specific prior written permission. |
| 52 | + |
| 53 | +``` |
| 54 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 55 | +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 56 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 57 | +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 58 | +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 59 | +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 60 | +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 61 | +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 62 | +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 63 | +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 64 | +POSSIBILITY OF SUCH DAMAGE. |
| 65 | +``` |
0 commit comments