Download the PHP package hack4mer/diffon without Composer
On this page you can find all versions of the php package hack4mer/diffon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hack4mer/diffon
More information about hack4mer/diffon
Files in hack4mer/diffon
Download hack4mer/diffon
More information about hack4mer/diffon
Files in hack4mer/diffon
Vendor hack4mer
Package diffon
Short Description A PHP library to find the differences between two given directories
License MIT
Package diffon
Short Description A PHP library to find the differences between two given directories
License MIT
Please rate this library. Is it a good library?
Informations about the package diffon
Diffon
A PHP library to find the differences between two given directories
Gives following information about the directories:
- Files/Directories that exist in the first directory only.
- Files/Directories that exist in second directory only.
- Files/Directories that exist in both the directories.
- Files that exist in both the directories, but contain different data.
But, what about directories that exist in both the directories and contain different things? For that, we should implement Diffon with recursion in our code.
Installation
composer require hack4mer/diffon
Usage
Let's say you have two directories with following content:
dir1 => hack4mer.txt, github.txt, winter.txt
dir2 => hack4mer.txt (with different content), github.txt, summer.txt
To compare the directories with Diffon:
Output:
Array
(
[only_in_source] => Array
(
[2] => winter.txt
)
[only_in_destination] => Array
(
[2] => summer.txt
)
[in_both] => Array
(
[0] => github.txt
[1] => hack4mer.txt
)
[not_same] => Array
(
[1] => hack4mer.txt
)
)
Notice the index of the array elements, they give information about the position of each file in given directories if sorted alphabetically.
All versions of diffon with dependencies
PHP Build Version
Package Version
No informations.
The package hack4mer/diffon contains the following files
Loading the files please wait ...