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

3152d 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

[crwlr/crawler

Web crawling and scraping library.

37214.8k2](/packages/crwlr-crawler)[datatables.net/datatables.net-bs4

DataTables is a plug-in for the jQuery Javascript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. This is DataTables with styling for \[Bootstrap4\](https://getbootstrap.com/docs/4.6/getting-started/introduction/)

2924.0k15](/packages/datatablesnet-datatablesnet-bs4)[samueltissot/wp_route

2017.6k](/packages/samueltissot-wp-route)

PHPackages © 2026

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