icecave/parity
A customizable deep comparison library.
3.0.1
7.4M downloads/mo
#2609 most downloaded on Packagist
icecave/parity
What this package is like to depend on
Last release 6 years ago
no release in 18 months
Release timing varies
gaps range from 3 months to 4.8 years
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
7 releases · first in 2013
0 releases in the last 12 months
see the full history below
Release timeline
7 releases · May 2013 to Feb 2021Releases
latest 7-
3.0.104 Feb 2021Release notes
Open source →Please note, as of this release this project intends to support only those
versions of PHP that are listed under the "Currently Supported Versions" section
of https://www.php.net/supported-versions.php. This means that support for older
PHP versions may be dropped in minor or patch releases.- Drop support for PHP 7.2
- Add support for PHP 8
Release notes
Open source →Please note, as of this release this project intends to support only those versions of PHP that are listed under the "Currently Supported Versions" section of https://www.php.net/supported-versions.php. This means that support for older PHP versions may be dropped in minor or patch releases.
- Drop support for PHP 7.2
- Add support for PHP 8
-
3.0.025 Aug 2020Release notes
Open source →This release contains several backwards compatibility breaks that will effect
more advanced usage of Parity, however the common usage viaParity::compare()
is unchanged.- [BC] Drop support for PHP 7.1
- [BC] Add parameter and return type hints
- [BC] Remove
PackageInfoclass - [BC] Rename
ComparatorInterfacetoComparator - [BC] Rename
AnyComparableInterfacetoAnyComparable - [BC] Rename
ExtendedComparableInterfacetoExtendedComparable - [BC] Rename
SelfComparableInterfacetoSelfComparable - [BC] Rename
SubClassComparableInterfacetoSubClassComparable - [BC] Remove
AbstractExtendedComparableclass, useExtendedComparableTraitinstead
Release notes
Open source →This release contains several backwards compatibility breaks that will effect more advanced usage of Parity, however the common usage via
Parity::compare()is unchanged.- [BC] Drop support for PHP 7.1
- [BC] Add parameter and return type hints
- [BC] Remove
PackageInfoclass - [BC] Rename
ComparatorInterfacetoComparator - [BC] Rename
AnyComparableInterfacetoAnyComparable - [BC] Rename
ExtendedComparableInterfacetoExtendedComparable - [BC] Rename
SelfComparableInterfacetoSelfComparable - [BC] Rename
SubClassComparableInterfacetoSubClassComparable - [BC] Remove
AbstractExtendedComparableclass, useExtendedComparableTraitinstead
-
2.0.006 Nov 2018Release notes
Open source →- [BC] Drop support for PHP 5.x and PHP 7.0
- [NEW] Added
Parity::min[Sequence](),max[Sequence]()(thanks @koden-km)
Release notes
Open source →- [BC] Drop support for PHP 5.x and PHP 7.0
- [NEW] Added
Parity::min[Sequence](),max[Sequence]()(thanks @koden-km)
-
1.0.017 Jan 2014 -
1.0.0-alpha.222 Oct 2013 pre-releaseRelease notes
Open source →- [BC]
SelfComparableInterfacenow requires the comparison operands to be the exactly same type. - [NEW] Added
SubClassComparableInterface, similar to the previous behavior ofSelfComparableInterface
Release notes
Open source →- [BC]
SelfComparableInterfacenow requires the comparison operands to be the exactly same type. - [NEW] Added
SubClassComparableInterface, similar to the previous behavior ofSelfComparableInterface
- [BC]
-
1.0.0-alpha.120 Oct 2013 pre-releaseRelease notes
Open source →- [BC] Removed
deepparameter fromParity::compare()and related convenience methods - [BC] Removed
ComparableInterfaceandComparator - [BC] Removed
AbstractComparable(replaced withAbstractExtendedComparablewhich does not implement any comparable interface) - [NEW] Added
AnyComparableInterfaceandSelfComparableInterface - [NEW] Added
ComparatorInterface::__invoke() - [NEW] Added
ObjectIdentityComparator,StrictPhpComparatorandPhpComparator - [NEW] Added
ParityComparatorwhich compares numeric types in a more natural manner - [IMPROVED] Comparators are now use other comparators to handle unsupported comparisons (composition rather than extension)
- [IMPROVED] Deep comparison no longer compares arrays by size first, allows for more natural ordering based on elements
Release notes
Open source →- [BC] Removed
deepparameter fromParity::compare()and related convenience methods - [BC] Removed
ComparableInterfaceandComparator - [BC] Removed
AbstractComparable(replaced withAbstractExtendedComparablewhich does not implement any comparable interface) - [NEW] Added
AnyComparableInterfaceandSelfComparableInterface - [NEW] Added
ComparatorInterface::__invoke() - [NEW] Added
ObjectIdentityComparator,StrictPhpComparatorandPhpComparator - [NEW] Added
ParityComparatorwhich compares numeric types in a more natural manner - [IMPROVED] Comparators are now use other comparators to handle unsupported comparisons (composition rather than extension)
- [IMPROVED] Deep comparison no longer compares arrays by size first, allows for more natural ordering based on elements
- [BC] Removed
-
0.1.029 May 2013