Download the PHP package joyme123/textdiff without Composer
On this page you can find all versions of the php package joyme123/textdiff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package textdiff
php text diff的实现, 基于最长公共子序列, 时间复杂度是O(m*n),m,n分别为两个字符串的长度。
安装
composer require joyme123/textdiff
使用
数组形式的diff结果
html的输出结果
预览结果为:
性能测试
该算法的性能很差,时间复杂度是O(m*n),因此尽量不要对长字符串进行diff。
All versions of textdiff with dependencies
PHP Build Version
Package Version
No informations.
The package joyme123/textdiff contains the following files
Loading the files please wait ....