2017 © Pedro Peláez
 

library text-diff

A simple text differences visualization library

image

qazd/text-diff

A simple text differences visualization library

  • Thursday, December 8, 2016
  • by qazd
  • Repository
  • 1 Watchers
  • 7 Stars
  • 231 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 52 % Grown

The README.md

TextDiff for PHP

TextDiff is a simple library for text differences visualization. Based on Wordpress's Compare Revisions., (*1)

DiffText Example, (*2)

Installation

  • via Composer composer require qazd/text-diff
  • via Git git clone https://github.com/qazd/text-diff.git
  • or download zip

Usage



<html>
<head>
    <title>TextDiff</title>
    <link rel="stylesheet" type="text/css" href="vendor/qazd/text-diff/css/style.css">
</head>
<body>

    <?= $table ?>

</body>
</html>

TextDiff::render() is the only available method. With the third argument set to false you can disable split view., (*3)

If you won't use Composer - just require src/TextDiff.php, (*4)

Integrate css/style.css into your page to style the comparison table., (*5)

More

The Versions

08/12 2016

dev-master

9999999-dev

A simple text differences visualization library

  Sources   Download

The Requires

  • php >=5.3

 

08/12 2016

v0.1.0

0.1.0.0

A simple text differences visualization library

  Sources   Download

The Requires

  • php >=5.3