codedruids/simple-diff
最新稳定版本:v1.0.3
Composer 安装命令:
composer require codedruids/simple-diff
包简介
PHP class wrapper for simple diff operation.
README 文档
README
SimpleDiff is a PHP class wrapper for a simple diffing algorithm.
Requirements
- PHP 5.4 or higher
Installation
Add the following to your composer.json:
{
"require": {
"CodeDruids/simple-diff": "1.*"
}
}
Basic Usage
$old = ['some','array','of','stuff']; $new = ['some','array','of','other','stuff']; $diff = \CodeDruids\SimpleDiff::diff($old, $new); $oldHtml = "Some <b>HTML</b> you simply <i>cannot</i> ignore!"; $newHtml = "Some <b>HTML</b> you just <i>cannot</i> ignore!"; $htmlDiff = \CodeDruids\SimpleDiff::htmlDiff($oldHtml, $newHmtl);
Support
If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.
统计信息
- 总下载量: 2.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Zlib
- 更新时间: 2015-12-16