PHPackages                             mrkovec/sdiff - 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. mrkovec/sdiff

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mrkovec/sdiff
=============

Simple and stupid text diff

1.0.0(8y ago)138MITPHPPHP ^7.0

Since Sep 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mrkovec/SDiff)[ Packagist](https://packagist.org/packages/mrkovec/sdiff)[ RSS](/packages/mrkovec-sdiff/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (8)Used By (0)

SDiff
=====

[](#sdiff)

Simple and stupid text diff.

Basic usage:

```
$a = "marry had lambs";
$b = "mary had a little lamb";
```

after

```
$result = SDiff::getCharDiff($a, $b);
```

`$result["diff"]` will contains

```
marry had a little lambs
```

and

```
$result = SDiff::getWordDiff($a, $b);
```

result in

```
marry had a little lambs
```

For object diff:

```
$a = [
  'marry' => 'had lambs'
];
$b = [
  'mary' => 'had a little lamb'
];
$result = SDiff::getObjectDiff($a, $b);
```

`$result` will contain

```
{
    marry: had a little lambs
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

7

Last Release

3153d ago

Major Versions

0.9.9 → 1.0.02017-09-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/a870f86023e3ce3c8eafc0da2d797c3f9814c99569af31e27a8a9e3aa77ea76d?d=identicon)[mrko](/maintainers/mrko)

---

Top Contributors

[![mrkovec](https://avatars.githubusercontent.com/u/6224603?v=4)](https://github.com/mrkovec "mrkovec (27 commits)")

### Embed Badge

![Health badge](/badges/mrkovec-sdiff/health.svg)

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

###  Alternatives

[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

14157.8k](/packages/apen-additional-reports)

PHPackages © 2026

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