2017 © Pedro Peláez
 

library php-diff

image

phalcongelist/php-diff

  • Monday, April 2, 2018
  • by klay
  • Repository
  • 2 Watchers
  • 9 Stars
  • 28,270 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 166 Forks
  • 0 Open issues
  • 11 Versions
  • 38 % Grown

The README.md

Phalcon Diff

Build Status, (*1)

About this repo

This is a fork of Chris Boulton's Diff project., (*2)

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:, (*3)

  • 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., (*4)

Please write us if you have any feedback., (*5)

Get Started

Requirements

To run this library on your project, you need at least:, (*6)

  • PHP >= 5.4
  • PHP mbstring extension

Installation

Install Composer in a common location or in your project:, (*7)

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

Create the composer.json file as follows:, (*8)

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

Run the composer installer:, (*9)

$ php composer.phar install

Example Use

More complete documentation will be available shortly., (*10)

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., (*11)

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

The Versions

02/04 2018

v1.0

1.0.0.0

  Sources   Download

23/09 2016

2.0.x-dev

2.0.9999999.9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4
  • ext-mbstring *

 

The Development Requires

php diff phalcon

20/09 2016

dev-master

9999999-dev

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4
  • ext-mbstring *

 

The Development Requires

php diff phalcon

20/09 2016

v2.0.4

2.0.4.0

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4
  • ext-mbstring *

 

The Development Requires

php diff phalcon

18/07 2016

v2.0.3

2.0.3.0

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4

 

The Development Requires

18/07 2016

v2.0.2

2.0.2.0

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4

 

The Development Requires

18/07 2016

v2.0.1

2.0.1.0

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4

 

The Development Requires

17/07 2016

v2.0.0

2.0.0.0

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

  Sources   Download

BSD-3-Clause

The Requires

  • php >= 5.4

 

The Development Requires

07/04 2016

v1.1.0

1.1.0.0

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

  Sources   Download

BSD-3-Clause

01/11 2013

v1.0.2

1.0.2.0

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

  Sources   Download

BSD-3-Clause

08/11 2012

v1.0.1

1.0.1.0

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

  Sources   Download

BSD-3-Clause