codedruids/simple-diff 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codedruids/simple-diff

最新稳定版本:v1.0.3

Composer 安装命令:

composer require codedruids/simple-diff

包简介

PHP class wrapper for simple diff operation.

README 文档

README

Latest release Build Status Code Coverage Code Quality Software License

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

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Zlib
  • 更新时间: 2015-12-16