Download the PHP package kipras/array-diff-html without Composer
On this page you can find all versions of the php package kipras/array-diff-html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kipras/array-diff-html
More information about kipras/array-diff-html
Files in kipras/array-diff-html
Download kipras/array-diff-html
More information about kipras/array-diff-html
Files in kipras/array-diff-html
Vendor kipras
Package array-diff-html
Short Description PHP class for pretty-printing the difference between two arrays/objects
License MIT
Homepage http://github.com/kipras/ArrayDiffHtml
Package array-diff-html
Short Description PHP class for pretty-printing the difference between two arrays/objects
License MIT
Homepage http://github.com/kipras/ArrayDiffHtml
Please rate this library. Is it a good library?
Informations about the package array-diff-html
ArrayDiffHtml
PHP class for pretty-printing the difference between two arrays/objects using HTML, CSS and JavaScript, providing buttons to expand/collapse each level.
Example screenshot:
Any objects found along the way are converted to arrays, in one of these ways (they are tried in this order):
- If a global function
toArray()
exists - that function is called and the result of it is used for comparison - If the object has a method
_toArray()
- that method is called and the result of it is used for comparison - Otherwise
get_object_vars()
is called to retrieve data from the object
Usage
-
ArrayDiffHtml::diff($first, $second, [$strictEquality], [$opt])
Options can be passed as an associative array in the $opt parameter.
Available options:title1
: Title of the$first1
array (default = 'First')title2
: Title of the$second
array (default = 'Second')noSecond
: If there is no second array (we are only printing the contents of the first array and no comparison should be done) - this should be set toTrue
. (default = False)
Requirements
- PHP >= 5.3 (uses
static::
keyword)
All versions of array-diff-html with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package kipras/array-diff-html contains the following files
Loading the files please wait ....