Download the PHP package phrity/comparison without Composer
On this page you can find all versions of the php package phrity/comparison. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download phrity/comparison
More information about phrity/comparison
Files in phrity/comparison
Download phrity/comparison
More information about phrity/comparison
Files in phrity/comparison
Vendor phrity
Package comparison
Short Description Interfaces and helper trait for comparing objects. Comparator for sort and filter applications.
License MIT
Homepage https://phrity.sirn.se/comparison
Package comparison
Short Description Interfaces and helper trait for comparing objects. Comparator for sort and filter applications.
License MIT
Homepage https://phrity.sirn.se/comparison
Please rate this library. Is it a good library?
Informations about the package comparison
Comparison
Interfaces and helper trait for comparing objects. Comparator utility class for sort and filter applications.
Current version supports PHP ^7.1|^8.0
.
Installation
Install with Composer;
The Equalable interface
Interface synopsis
Examples
The Comparable interface
Extends Equalable
interface.
Interface synopsis
Examples
The ComparisonTrait trait
A class using this trait only has to implement the compare()
method. Enables all other methods in Equalable
and Comparable
intefaces.
Trait synopsis
The Comparator class
Utility class to sort and filter array objects that implement the Comparable
interface.
Class synopsis
Examples
The IncomparableException class
Must be thrown if comparison methods receive input they can not compare with.
Class synopsis
Versions
Version | PHP | |
---|---|---|
1.3 |
^7.1\|^8.0 |
|
1.2 |
^7.1 |
The Comparator supports stored content for multiple operations |
1.1 |
>=5.6 |
The Comparator class for sort and filter |
1.0 |
>=5.6 |
Equalable and Comparable interface, ComparisonTrait trait |
All versions of comparison with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1|^8.0
The package phrity/comparison contains the following files
Loading the files please wait ....