jfcherng/php-diff
Generate diffs between two strings in PHP with multiple renderers: unified/context text, JSON, and rich HTML (inline, side-by-side, combined). Includes configurable differ/renderer options and helper CSS for easy HTML diff styling.
|
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 | 256K | 0 | 22.6 | 65.0 | MIT | 5 months ago | |
| phpspec/php-diff | 0.85 | 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. | 362 | 381 | 31 | 657K | 0 | 24.6 | 53.8 | — | 5 years ago | |
| jfcherng/php-sequence-matcher | 0.85 | PHP longest sequence matcher inspired by Python difflib. Compare arrays or strings to find matching blocks and measure similarity, useful for diffing and change detection. Lightweight, modern PHP (8.4+) package. | 9 | 9 | 4 | 207K | 0 | 22.3 | 65.0 | BSD-3-Clause | 3 days ago | |
| sebastian/diff | 0.84 | Standalone PHP diff library extracted from PHPUnit. Generate unified/strict unified diffs or diff-only output between strings via Differ and output builders, or parse unified diff text into an object graph with Parser for further processing. | 7,661 | 7,706 | 85 | 13M | 5 | 50.1 | 53.6 | BSD-3-Clause | 4 days ago |
How can I help you explore Laravel packages today?