php-standard-library/comparison
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phrity/comparison | 0.90 | 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+. | 0 | 0 | 0 | 43K | 0 | 9.0 | 59.2 | — | 7 months ago | |
| sebastian/comparator | 0.88 | 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,055 | 7,069 | 73 | 14M | 1 | 54.9 | 52.6 | BSD-3-Clause | 1 month ago | |
| boulzy/array-comparator | 0.87 | 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/php-standard-library | 0.86 | 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,559 | 1,554 | 90 | 278K | 21 | 43.6 | 44.4 | MIT | 1 month ago |
How can I help you explore Laravel packages today?