chita / phpdiff
Diff implementation written in PHP, supporting two and three-way diff generation
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ^7.0 || ^8.0 || ^10.0
This package is auto-updated.
Last update: 2024-12-30 02:07:11 UTC
README
PHPDiff is diff/merge library written in PHP which supports both two and three-way merging. This library is currently in the alpha stage.
Features:
- Two-way diffing/merging
- Three-way diffing/merging
- Using Weave merge algorithm
- Using Three-way merge algorithm
- Custom comparison implementations
You can find the full feature list and the changes made to this library in the changelog.
Requirements
PHP 7.1.0 or higher is required (although it should run on 5.4 as well probably).
Installation
You may install PHPDiff with composer by running the following commands in your console:
php composer.phar require chita/phpdiff:2.*
Documentation
For examples and documentation you may wish to read the docs.
Versioning
PHPDiff uses semantic versioning.
Tests
PHPDiff uses automated tests to prevent code regressions.
License
PHPDiff is available under the MIT License.
Contributions
If you have some code you would like to contribute to the project, please note that this project uses the PSR-2 coding standard, and the PSR-4 autoloading standard.
Contributions to the documentation, tests or to the code, or simply reporting issues here are welcomed, and very much appreciated.