Download the PHP package 123dok/php-diff without Composer
On this page you can find all versions of the php package 123dok/php-diff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 123dok/php-diff
More information about 123dok/php-diff
Files in 123dok/php-diff
Package php-diff
Short Description A comprehensive library for generating differences between two hashable objects (strings or arrays).
License BSD-3-Clause
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.
Requirements
PHP Multibyte String
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] Copyright (c) 2015 Mario Brandt [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.
All versions of php-diff with dependencies
ext-mbstring Version *