sebastian/diff
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lolli42/finediff | 0.88 | 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 | |
| jfcherng/php-diff | 0.87 | 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. | 470 | 474 | 51 | 199K | 5 | 34.5 | 43.9 | BSD-3-Clause | 2 days ago | |
| sebastian/comparator | 0.86 | sebastian/comparator compares PHP values for equality with type-specific comparators. Use the Factory to select the right comparator for two values and assertEquals() to verify matches, throwing a ComparisonFailure when differences are found. | 7,050 | 7,063 | 68 | 13M | 15 | 59.8 | 62.0 | BSD-3-Clause | 1 day 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 |
How can I help you explore Laravel packages today?