File tree Expand file tree Collapse file tree 1 file changed +21
-16
lines changed Expand file tree Collapse file tree 1 file changed +21
-16
lines changed Original file line number Diff line number Diff line change 1
- PHP Diff Class
2
- --------------
1
+ # PHP Diff Class
3
2
4
3
[ ![ SensioLabsInsight] ( https://insight.sensiolabs.com/projects/aa609edb-cdb1-45cf-ad51-afbdab48f6a1/mini.png )] ( https://insight.sensiolabs.com/projects/aa609edb-cdb1-45cf-ad51-afbdab48f6a1 ) [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/db5f8d57b1234502aeb852afc87e0dfe )] ( https://www.codacy.com/app/leet31337/php-diff )
5
4
6
5
[ ![ Latest Version] ( https://img.shields.io/github/release/JBlond/php-diff.svg?style=flat-square&label=Release )] ( https://github.com/JBlond/php-diff/releases )
7
6
8
- Introduction
9
- ------------
7
+ ## Introduction
8
+
10
9
A comprehensive library for generating differences between
11
10
two hashable objects (strings or arrays). Generated differences can be
12
11
rendered in all of the standard formats including:
@@ -19,40 +18,46 @@ The logic behind the core of the diff engine (ie, the sequence matcher)
19
18
is primarily based on the Python difflib package. The reason for doing
20
19
so is primarily because of its high degree of accuracy.
21
20
22
- Example Use
23
- -----------
21
+
22
+ ## Install
23
+
24
+ ```
25
+ composer require jblond/php-diff
26
+ ```
27
+
28
+ ## Example Use
29
+
24
30
A quick usage example can be found in the example/ directory and under
25
31
example.php.
26
32
27
33
![ Example Image] ( readme.png " Example ")
28
34
29
35
![ Example 2 Image] ( readme2.png " Example2 ")
30
36
31
- Requirements
32
- -----------
37
+ ## Requirements
38
+
33
39
- PHP 7.1 or greater
34
40
- PHP Multibyte String
35
41
36
- Merge files using jQuery
37
- ------------------------
42
+ ## Merge files using jQuery
43
+
38
44
Xiphe has build a jQuery plugin with that you can merge the compared
39
45
files. Have a look at [ jQuery-Merge-for-php-diff] ( https://github.com/Xiphe/jQuery-Merge-for-php-diff ) .
40
46
41
- Todo
42
- ----
47
+ ## Todo
48
+
43
49
* Ability to ignore blank line changes
44
50
* 3 way diff support
45
51
* Performance optimizations
46
52
47
- Contributors
48
- ---------------------
53
+ ## Contributors
54
+
49
55
Contributors since I forked the repo.
50
56
51
57
- maxxer
52
58
- Creris
53
59
- jfcherng
54
60
55
- License (BSD License)
56
- ---------------------
61
+ ### License (BSD License)
57
62
58
63
see [ License] ( LICENSE )
You can’t perform that action at this time.
0 commit comments