comparison vendor/sebastian/diff/README.md @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
1 # Diff 1 # sebastian/diff
2 2
3 Diff implementation for PHP, factored out of PHPUnit into a stand-alone component. 3 Diff implementation for PHP, factored out of PHPUnit into a stand-alone component.
4 4
5 ## Installation 5 ## Installation
6 6
7 To add this package as a local, per-project dependency to your project, simply add a dependency on `sebastian/diff` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on Diff: 7 You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):
8 8
9 { 9 composer require sebastian/diff
10 "require": { 10
11 "sebastian/diff": "*" 11 If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:
12 } 12
13 } 13 composer require --dev sebastian/diff
14 14
15 ### Usage 15 ### Usage
16 16
17 The `Differ` class can be used to generate a textual representation of the difference between two strings: 17 The `Differ` class can be used to generate a textual representation of the difference between two strings:
18 18