phrity/comparison
Lightweight PHP interfaces and a helper trait for object comparisons. Implement Equalable/Comparable (or just compare() via ComparisonTrait) to get equals/greater/less helpers, plus a Comparator utility for sorting and filtering. Compatible with PHP 7.1+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sebastian/comparator | 0.84 | sebastian/comparator compares PHP values for equality with type-aware comparators. Use the Factory to select the right comparator and get helpful ComparisonFailure details when assertions fail—ideal for test suites and tooling. | 7,047 | 7,064 | 74 | 15M | 1 | 57.9 | 54.0 | BSD-3-Clause | 18 hours ago | |
| boulzy/array-comparator | 0.83 | Compare PHP arrays with boulzy/array-comparator: detect differences and changes between two arrays, including nested structures. Useful for testing, syncing data, and debugging by quickly showing what was added, removed, or modified. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| php-standard-library/comparison | 0.83 | Small PHP comparison utilities that provide consistent, reusable ways to compare values. Useful for sorting, equality checks, and custom comparator functions without rewriting boilerplate across your projects. | 1 | 1 | 0 | 34K | 0 | 19.8 | 64.2 | MIT | 2 months ago | |
| php-standard-library/php-standard-library | 0.77 | PSL (PHP Standard Library) is a well-typed, centralized API set for PHP 8.4+ covering async, collections, networking, I/O, crypto, terminal UI, and more. It replaces unsafe PHP primitives with predictable, async-ready alternatives and includes composable type-safe validation. | 1,560 | 1,561 | 90 | 271K | 21 | 43.3 | 44.3 | MIT | 2 months ago |
How can I help you explore Laravel packages today?