phpspec/php-diff
phpspec/php-diff is a lightweight PHP library for generating diffs between strings and arrays. It computes insertions, deletions, and changes and can render readable output via formatters, making it useful for tests, code review tooling, and text comparison.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lolli42/finediff | 0.86 | Create HTML diffs between two strings with fine-grained character or word comparison. Outputs / markup, escapes HTML entities, supports multibyte strings, and exposes internal opcodes for diff processing. PHP 8.2+ in v1.1. | 13 | 13 | 3 | 325K | 0 | 8.9 | 58.3 | MIT | 8 months ago | |
| jfcherng/php-diff | 0.82 | Generate diffs between two strings with multiple renderers: context, unified, JSON, and rich HTML views (combined, inline, side-by-side). Includes helper CSS for HTML output. Requires PHP 8.3+ and ext-iconv; install via Composer. | 482 | 485 | 49 | 223K | 5 | 33.6 | 43.9 | BSD-3-Clause | 4 weeks ago | |
| swaggest/json-diff | 0.82 | PHP library for comparing and diffing JSON structures. Generate human-readable diffs and apply patches to reconcile documents, helping detect changes between API responses, configs, and data snapshots with support for nested objects and arrays. | 243 | 247 | 33 | 622K | 8 | 13.7 | 50.0 | MIT | 1 year ago | |
| localheinz/diff | 0.81 | Fork of sebastian/diff created for use with ergebnis/composer-normalize (with permission from Sebastian Bergmann). Intended as an internal dependency; prefer using sebastian/diff directly for general diff functionality. | 47 | 47 | 3 | 1M | 1 | 1.9 | 57.1 | NOASSERTION | 1 year ago | |
| caxy/php-htmldiff | 0.79 | Compare two HTML snippets/files and generate a marked-up diff highlighting insertions, deletions, and changes. Easy Composer install, simple API (HtmlDiff->build()), configurable behavior and CSS-friendly output; includes a live demo and Symfony bundle option. | 215 | 224 | 55 | 435K | 26 | 19.8 | 54.6 | GPL-2.0 | 1 year ago |
How can I help you explore Laravel packages today?