Extension:Diff

Diff is a small library for creating and representing diffs between data structures. It is a standalone PHP library that can be used by PHP applications (such as MediaWiki extensions). It does thus not expose functionality to the user on its own.

Diff provides classes to represent diffs and the operations they consist of, as well as service objects to compute such diffs or apply them as a patch.

Requirements
Diff requires:


 * PHP 5.3 or above
 * (For running the PHPUnit tests: PHPUnit 3.7 or later)
 * (If used as MediaWiki extension: MediaWiki 1.10 or later)

As standalone library
Include Diff/Diff.php. This file includes an autoloader allowing you to directly reference the diff classes without first including their files. If you want to use your own autoloader, you can find the list of diff classes in Diff/Diff.classes.php.

Usage
See the usage documentation in the README file.

Examples
See the examples in the README file.

Internationalization
is fully internationalized. Translation of messages is done through translatewiki.net. The translation for this extension can be found here. To add language values or change existing ones, you should create an account on translatewiki.net, then request permission from the administrators to translate a certain language or languages on this page (this is a very simple process). Once you have permission for a given language, you can log in and add or edit whatever messages you want to in that language.

Authors
Diff has been written by Jeroen De Dauw as Wikimedia Germany employee for the Wikidata project.