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 | 33K | 0 | 11.4 | 60.4 | — | 6 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,050 | 7,064 | 69 | 14M | 1 | 57.0 | 53.2 | BSD-3-Clause | 2 weeks 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 is a modern standard library for PHP 8.4+, inspired by HHVM’s HSL. It offers consistent, well-typed APIs for async, collections, I/O, networking, crypto, terminal UI, and more—safer alternatives to built-ins with predictable errors and async-ready design. | 1,543 | 1,544 | 87 | 254K | 21 | 46.2 | 44.0 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?