phalcongelist/php-diff 问题修复 & 功能扩展

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

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

phalcongelist/php-diff

最新稳定版本:v2.0.4

Composer 安装命令:

composer require phalcongelist/php-diff

包简介

A comprehensive library for generating differences between two hashable objects (strings or arrays).

README 文档

README

Build Status

About this repo

This is a fork of Chris Boulton's Diff project.

Introduction

Phalcon Diff is a comprehensive library for generating differences between two hashable objects (strings or arrays). Generated differences can be rendered in all of the standard formats including:

  • Unified
  • Context
  • Inline HTML
  • Side by Side HTML

The logic behind the core of the diff engine (ie, the sequence matcher) is primarily based on the Python difflib package. The reason for doing so is primarily because of its high degree of accuracy.

Please write us if you have any feedback.

Get Started

Requirements

To run this library on your project, you need at least:

  • PHP >= 5.4
  • PHP mbstring extension

Installation

Install Composer in a common location or in your project:

$ curl -s http://getcomposer.org/installer | php

Create the composer.json file as follows:

{
    "require": {
        "phalcongelist/php-diff": "~2.0"
    }
}

Run the composer installer:

$ php composer.phar install

Example Use

More complete documentation will be available shortly.

Todo

  • Ability to ignore blank line changes
  • 3 way diff support
  • Performance optimizations

License

Phalcon Diff is open-sourced software licensed under the New BSD License.

© 2016, Phalcon Framework Team and contributors
© 2009-2016, Chris Boulton chris.boulton@interspire.com
All rights reserved.

统计信息

  • 总下载量: 434.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 191
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-07-17