What this package is like to depend on
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 5 months
Nearly every release is documented
notes for 40 of 44 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
44 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
43 releases · Feb 2019 to Apr 2022Releases
latest 44-
3.13.022 Apr 2022 -
3.12.005 Feb 2022 -
3.11.125 Nov 2021 -
3.11.025 Nov 2021 -
3.10.020 Oct 2021 -
3.9.010 May 2021 -
3.8.012 Apr 2021 -
3.7.210 Mar 2021Release notes
Open source →- Fix problem with
@readonlyannotation and annotation parsing libraries - #92
Release notes
Open source →- Fix problem with
@readonlyannotation and annotation parsing libraries - #92
- Fix problem with
-
3.7.112 Feb 2021 -
3.7.013 Jan 2021 -
3.6.413 Jan 2021 -
3.6.312 Jan 2021 -
3.6.217 Dec 2020 -
3.6.126 Nov 2020Nothing published for this version
-
3.6.0no dateRelease notes
Open source →- Add
assertIsEnumValue()andassertIsEnumLabel()to\Spatie\Enum\Phpunit\EnumAssertions- #80
- Add
-
3.5.119 Nov 2020 -
3.5.022 Oct 2020 -
3.4.022 Oct 2020Release notes
Open source →- Add
\Spatie\Enum\Enum::toValues()and\Spatie\Enum\Enum::toLabels()methods - #72
- Add
-
3.3.021 Oct 2020Release notes
Open source →- Add
\Spatie\Enum\Phpunit\EnumAssertionswith a default set of assertions - #71
- Add
-
3.2.008 Oct 2020 -
3.1.228 Sep 2020 -
3.1.128 Aug 2020Release notes
Open source →- Throw
TypeErrorif value passed toEnumconstruct is notstringorinteger
- Throw
-
3.1.028 Aug 2020Release notes
Open source →- Add missing type-hints and doc-blocks
- Fix unique values and labels
- Flag
EnumDefinitionas internal
-
3.0.022 Jul 2020 -
2.3.817 Jul 2020 -
2.3.730 Jun 2020Release notes
Open source →- Fix internal usage of
toArray()to allow custom array representations #58
- Fix internal usage of
-
2.3.611 Mar 2020 -
2.3.511 Feb 2020 -
2.3.417 Jan 2020Release notes
Open source →- Fix for static method call passed to
__callwithin the context of an object
- Fix for static method call passed to
-
2.3.325 Sep 2019 -
2.3.205 Sep 2019Nothing published for this version
-
2.3.119 Aug 2019 -
2.3.005 Aug 2019Release notes
Open source →- Make
\Spatie\Enum\Enumerable::isValidIndex/Name/Value()methods public #36 -
Please note that this could be breaking for custom implementations of the
\Spatie\Enum\Enumerableinterface.
- Make
-
2.2.018 Jul 2019 -
2.1.207 May 2019 -
2.1.118 Apr 2019 -
2.1.017 Apr 2019 -
2.0.108 Apr 2019 -
2.0.001 Apr 2019Release notes
Open source →A full major rework of the
Enumclass - we try to list all changes, for more details you can check out the PR and the Issue.- Add
\Spatie\Enum\Enumerableinterface - Add
\Spatie\Enum\Exceptions\DuplicatedIndexException,\Spatie\Enum\Exceptions\DuplicatedValueException,\Spatie\Enum\Exceptions\InvalidIndexExceptionand\Spatie\Enum\Exceptions\InvalidValueExceptionexceptions - Add
\Spatie\Enum\Enum->getIndex()method - Add
\Spatie\Enum\Enum::getIndices()method - Add
\Spatie\Enum\Enum->getValue()method - Add
\Spatie\Enum\Enum::getValues()method - Rename
\Spatie\Enum\Enum::from()to\Spatie\Enum\Enum::make() - Rename
\Spatie\Enum\Enum::equals()to\Spatie\Enum\Enum::isEqual() - Rename
\Spatie\Enum\Enum::isOneOf()to\Spatie\Enum\Enum::isAny() - Change
\Spatie\Enum\Enum->__construct()signature and responsibility - only take index & value and validate them - Change
\Spatie\Enum\Enum::toArray()return value instead of an array ofvalue => nameit returnsvalue => index - Drop recursive
\Spatie\Enum\Enum::make()support from inside of an unstatic method - Drop
\Spatie\Enum\Enum::$mapin favor of\Spatie\Enum\Enum->getIndex()and\Spatie\Enum\Enum->getValue() - Update all methods have strict type checks:
index: intandvalue: string - Update all methods are compatible with all required types: index, value, name or instance of Enum
- Add
-
1.1.018 Mar 2019 -
1.0.218 Mar 2019 -
1.0.114 Mar 2019Nothing published for this version
-
1.0.008 Feb 2019 -
0.0.107 Feb 2019Nothing published for this version