PHPackages                             neos/diff - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. neos/diff

ActiveNeos-package[Utility &amp; Helpers](/categories/utility)

neos/diff
=========

This is a comprehensive library for generating differences between two strings or arrays

9.1.4(7mo ago)111.1M—5.1%23BSD-3-ClausePHPPHP ^8.2

Since Dec 15Pushed 1mo agoCompare

[ Source](https://github.com/neos/diff)[ Packagist](https://packagist.org/packages/neos/diff)[ Fund](https://shop.neos.io/neosfunding/)[ RSS](/packages/neos-diff/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (499)Used By (3)

\[[![BSD License](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)](https://camo.githubusercontent.com/850eae1099d2b05f53383473d7cd51f9bc1ab09b7d0d9e5122f1dd930efdcc6d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e737667)\] [![Latest Stable Version](https://camo.githubusercontent.com/5bbde451e2526ebe5cc7ae76ef29bcc71b039e485bd050b8aabb195d01c3074b/68747470733a2f2f706f7365722e707567782e6f72672f6e656f732f646966662f76657273696f6e)](https://packagist.org/packages/neos/diff)

Diff Library
============

[](#diff-library)

This is a repackaged and modernized version of Chris Boulton's PHP Diff Library. It has been transformed to the Neos namespace and is working out of the box with Composer's and Flow's auto loading mechanism. This library is compatible with PHP 5 (tested with 5.5 and 5.6) and PHP 7.

Note: Even though this library is rather stable and has not been modified by its original author for years, the Neos Team does not actively maintain all contained renderers.

Features
--------

[](#features)

This 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](https://docs.python.org/2/library/difflib.html). The reason for doing so is primarily because of its high degree of accuracy.

License (BSD License)
---------------------

[](#license-bsd-license)

Portions Copyright by Contributors of the Neos Project - [www.neos.io](http://www.neos.io)

Copyright (c) 2009 Chris Boulton All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of the Chris Boulton nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance77

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~0 days

Total

498

Last Release

223d ago

Major Versions

8.3.9 → 9.0.0-beta22023-11-02

8.3.22 → 9.0.12024-02-02

8.3.21 → 9.0.02024-02-02

8.4.5 → 9.1.x-dev2025-10-07

8.3.31 → 9.0.72025-10-07

PHP version history (7 changes)2.1.1PHP &gt;=5.5.0

4.3.0PHP ^7.0

5.3.11PHP ^7.2

7.0.2PHP ^7.3

7.0.5PHP ^7.3 || ^8.0

8.1.2PHP ^8.0

9.0.0-beta2PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11575267?v=4)[Neos](/maintainers/neos)[@neos](https://github.com/neos)

---

Top Contributors

[![kdambekalns](https://avatars.githubusercontent.com/u/95873?v=4)](https://github.com/kdambekalns "kdambekalns (15 commits)")[![mficzel](https://avatars.githubusercontent.com/u/1309380?v=4)](https://github.com/mficzel "mficzel (3 commits)")[![robertlemke](https://avatars.githubusercontent.com/u/95582?v=4)](https://github.com/robertlemke "robertlemke (2 commits)")[![albe](https://avatars.githubusercontent.com/u/4259532?v=4)](https://github.com/albe "albe (2 commits)")[![DrillSergeant](https://avatars.githubusercontent.com/u/883552?v=4)](https://github.com/DrillSergeant "DrillSergeant (1 commits)")[![daniellienert](https://avatars.githubusercontent.com/u/642226?v=4)](https://github.com/daniellienert "daniellienert (1 commits)")[![aertmann](https://avatars.githubusercontent.com/u/903567?v=4)](https://github.com/aertmann "aertmann (1 commits)")

### Embed Badge

![Health badge](/badges/neos-diff/health.svg)

```
[![Health](https://phpackages.com/badges/neos-diff/health.svg)](https://phpackages.com/packages/neos-diff)
```

###  Alternatives

[alfonsobries/nova-froala-editor

A Laravel Nova froala editor field.

1710.1k](/packages/alfonsobries-nova-froala-editor)[symfony-bundles/fork

SymfonyBundles Fork Library

178.0k](/packages/symfony-bundles-fork)[magepow/ajaxcart

Magepow Ajax Add To Cart

174.0k](/packages/magepow-ajaxcart)[martinbutt/laravel-adsense

Display Adsense ads easily in Laravel 6.x, 7.x and 8.x

101.0k](/packages/martinbutt-laravel-adsense)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
