Extension:Diff

Diff is a small diff library for structured data. It can be used as stand alone in any PHP application or as MediaWiki extension that can then be used by other extensions.

Requirements
Diff requires:


 * PHP 5.3 or above
 * (If used as MediaWiki extension: MediaWiki 1.16 or later)

Download
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Diff.git

As MediaWiki extension
Once you have downloaded the code, place the Diff directory within your MediaWiki 'extensions' directory. Then add the following code to your LocalSettings.php file:

As standalone library
Include Diff/Diff.standalone.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.

Version
This is a copy of the release notes file on GIT, which might be more up to date than this page.

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.

Test coverage
Diff has better unit test coverage then any other MediaWiki extension [citation needed].