sebastian/comparator
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 2 days ago | |
| eliashaeussler/deep-closure-comparator | 0.83 | PHPUnit comparator/assertion that deeply compares closures inside objects/arrays by serializing them via opis/closure. Use DeepClosureAssert::assertEquals() as a drop-in replacement for PHPUnit’s assertEquals when closures should be treated as equal. | 0 | 0 | 0 | 10K | 1 | 21.9 | 65.0 | GPL-3.0 | 1 month ago | |
| sebastian/diff | 0.82 | 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 | 3 days ago | |
| jfcherng/php-diff | 0.82 | 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 | |
| php-standard-library/comparison | 0.82 | Lightweight PHP comparison helpers from php-standard-library. Provides simple, reusable utilities for comparing values consistently across your codebase, aiming to reduce boilerplate and make sorting/equality checks easier in small projects. | 1 | — | 0 | — | 0 | 20.0 | — | MIT | 2 weeks ago | |
| phpspec/php-diff | 0.80 | 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 | |
| wyrihaximus/test-utilities | 0.78 | Shared test utilities for PHP projects: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-to-use PHPStan defaults and a preconfigured RectorConfig for common project layouts and doc-tag to attribute conversions. | 7 | 7 | 1 | 36K | 6 | 31.8 | 64.6 | MIT | 4 days ago |
How can I help you explore Laravel packages today?