NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3948 most downloaded on Packagist
Extended PHP enums capabilities and frameworks integrations
Latest stable
v3.0.0
Last release 7 months ago
13 Apr 2026
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 49 of 51 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
58 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
…#249 Prepare 3.0: bump requirements, remove deprecated code, add upgrade guide ( @ogizanagi )
[ 4c9e508 ] minor #248 Deprecate BackedEnumFromQuery in favor of Symfony's MapQueryParameter ( @ogizanagi )
Your coding agent can read these notes before it upgrades. Set up the MCP server →
[4c9e508] minor #248 Deprecate BackedEnumFromQuery in favor of Symfony's MapQueryParameter (@ogizanagi)
[ffe6667] minor #241 Simplified hasFlags. (@laurentmuller) [a1e09f8] bug #242 Add nullable type declaration for default null value (@ker0x)
[ffe6667] minor #241 Simplified hasFlags. (@laurentmuller) [a1e09f8] bug #242 Add nullable type declaration for default null value (@ker0x)
[d44e139] minor #239 Simplify FlagBag guards (@ogizanagi) [0e67f9b] minor #237 Updated the FlagBag templates. (@laurentmuller)
[d44e139] minor #239 Simplify FlagBag guards (@ogizanagi) [0e67f9b] minor #237 Updated the FlagBag templates. (@laurentmuller)
[25382e9] minor #235 Conflict broken DBAL 4 versions (@michnovka)
[25382e9] minor #235 Conflict broken DBAL 4 versions (@michnovka)
[ a1e8c52 ] minor #229 Fix code example ( @eliashaeussler ) [ 503a7fb ] feature #232 DBAL4 changes ( @michnovka , @ogizanagi )
[a1e8c52] minor #229 Fix code example (@eliashaeussler)
[503a7fb] feature #232 DBAL4 changes (@michnovka, @ogizanagi)
[ bd65e9e ] feature #227 Bump dependencies. test against symfony 7 ( @michnovka )
[bd65e9e] feature #227 Bump dependencies. test against symfony 7 (@michnovka)
[8b09a3a] feature #224 Implementation of the translatable interface. (laurentmuller) [a64a1fa] bug #215 Fix AbstractEnumType convertToDatabase functio
[8b09a3a] feature #224 Implementation of the translatable interface. (laurentmuller) [a64a1fa] bug #215 Fix AbstractEnumType convertToDatabase function to support string|int (michnovka)
[7266715] minor #196 Add context to (de)normalizer support check (mbrodala) [dce599d] minor #209 Bump github workflows, fix mongodb Windows (michnovka
[7266715] minor #196 Add context to (de)normalizer support check (mbrodala) [dce599d] minor #209 Bump github workflows, fix mongodb Windows (michnovka) [d6d138b] feature #210 Strong typed function params and return types (michnovka) [f4a08aa] minor #216 allow int enum to be normalized as int (maximecolin) [400030f] bug #218 [Validator] Fix 1.x enum constraint with named arguments (ogizanagi) [d555de9] feature #219 Add phpstan (benji07, ogizanagi)
[96c2be4] minor #208 Removed unused bin reference in composer.json (michnovka)
[96c2be4] minor #208 Removed unused bin reference in composer.json (michnovka)
[d32d60a] bug #205 [HttpKernel] Move the backed enum value resolver deprecation trigger to the constructor (ogizanagi)
[d32d60a] bug #205 [HttpKernel] Move the backed enum value resolver deprecation trigger to the constructor (ogizanagi)
[b20e8e8] minor #198 [CI] Update edges (@ogizanagi) [e0bc146] minor #200 [CI] Fix Github Actions deprecations (@ogizanagi) [a7aeecc] minor #202 [Tests…
[b20e8e8] minor #198 [CI] Update edges (@ogizanagi) [e0bc146] minor #200 [CI] Fix Github Actions deprecations (@ogizanagi) [a7aeecc] minor #202 [Tests] Remove unnecessary 6.2 config (@ogizanagi) [74ba8a2] minor #204 Remove obsolete dump JS enum binary (@ogizanagi) [baae644] feature #201 [Readable] Allow to configure a common suffix/prefix & use the enum case value/name as default label (@ogizanagi)
[306c78d] minor #189 [Docs] Explain how to use enums with Doctrine ORM QueryBuilder (@pluk77) [52b33dd] minor #193 Fix PhpStan issue with FlagBag miss
[306c78d] minor #189 [Docs] Explain how to use enums with Doctrine ORM QueryBuilder (@pluk77) [52b33dd] minor #193 Fix PhpStan issue with FlagBag missing template on static methods (@laurentmuller) [a296673] bug #197 Fix #[EnumCase] inheritance to set & get extras (@ogizanagi)
This is a complete rewrite of the library to leverage & add new capabilities over new PHP 8.1 native enums. Some features are still awaited (https://g
This is a complete rewrite of the library to leverage & add new capabilities over new PHP 8.1 native enums. Some features are still awaited (https://github.com/Elao/PhpEnums/issues/124), but the main interfaces should not change by now, and the library will be improved in the next minor releases.
Thanks to every contributor who helped moving forward to this new version 🎉 ✨
[e841eb6] feature #165 V2: Rewrite with PHP 8.1 enums (@ogizanagi) [0bc5a0b] feature #167 Add VarDumper caster for readables (@ogizanagi) [e4dacde] feature #168 Add VarDumper caster for flag bag (@ogizanagi) [2aefece] feature #169 [HttpKernel] Add a controller argument resolver for backed enums (@ogizanagi) [55781e1] minor #171 [Docs] Mention the official Doctrine ORM integration (@ogizanagi) [7d08ee2] minor #173 fix phpstan phpdoc (@Kleinast) [ec16823] bug #174 Override the block prefix (@benji07) [c447d57] minor #175 Throw bad method call on attempt to call ReadableEnumTrait::readableForValue on non backed enum (@ogizanagi) [1a1c3d6] feature #170 Allow to provide extra values to EnumCase attribute (@ogizanagi) [27e0c46] feature #177 add Faker provider (@IonBazan, @ogizanagi) [ad2d4fd] feature #176 Add Doctrine ODM integration (@IonBazan) [98a03f3] feature #181 Add FlagBag::fromAll to instantiate a bag with all of its flags (@michnovka) [7600213] feature #183 FlagBagType support (@michnovka) [e623ba2] feature #182 Add SQL Enum support (@michnovka, @ogizanagi) [7a6c730] feature #186 Initial DBAL FlagBag support (@michnovka) [e6735d6] minor #187 Add missing ODM extensions test + XSD types (@ogizanagi)
[e841eb6] feature #165 V2: Rewrite with PHP 8.1 enums (ogizanagi) [0bc5a0b] feature #167 Add VarDumper caster for readables (ogizanagi) [e4dacde] feat
[e841eb6] feature #165 V2: Rewrite with PHP 8.1 enums (ogizanagi) [0bc5a0b] feature #167 Add VarDumper caster for readables (ogizanagi) [e4dacde] feature #168 Add VarDumper caster for flag bag (ogizanagi) [2aefece] feature #169 [HttpKernel] Add a controller argument resolver for backed enums (ogizanagi) [55781e1] minor #171 [Docs] Mention the official Doctrine ORM integration (ogizanagi) [7d08ee2] minor #173 fix phpstan phpdoc (Kleinast) [ec16823] bug #174 Override the block prefix (benji07) [c447d57] minor #175 Throw bad method call on attempt to call ReadableEnumtrait::readableForValue on non backed enum (ogizanagi) [1a1c3d6] feature #170 Allow to provide extra values to EnumCase attribute (ogizanagi) [27e0c46] feature #177 add Faker provider (IonBazan, ogizanagi) [ad2d4fd] feature #176 Add Doctrine ODM integration (IonBazan) [98a03f3] feature #181 Add FlagBag::fromAll to instantiate a bag with all of its flags (michnovka) [7600213] feature #183 FlagBagType support (michnovka) [e623ba2] feature #182 Add SQL Enum support (michnovka, ogizanagi)
Since v2.0.0-beta.2:
[7a6c730] feature #186 Initial DBAL FlagBag support (@michnovka) [e6735d6] minor #187 Add missing ODM extensions test + XSD types (@ogizanagi)
[98a03f3] feature #181 Add FlagBag::fromAll to instantiate a bag with all of its flags (@michnovka) [7600213] feature #183 FlagBagType support (@michn
[98a03f3] feature #181 Add FlagBag::fromAll to instantiate a bag with all of its flags (@michnovka) [7600213] feature #183 FlagBagType support (@michnovka) [e623ba2] feature #182 Add SQL Enum support (@michnovka, @ogizanagi)
[27e0c46] feature #177 add Faker provider (@IonBazan, @ogizanagi) [ad2d4fd] feature #176 Add Doctrine ODM integration (@IonBazan)
[27e0c46] feature #177 add Faker provider (@IonBazan, @ogizanagi) [ad2d4fd] feature #176 Add Doctrine ODM integration (@IonBazan)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v2.0.0-alpha.3...v2.0.0-beta.1
[c447d57] minor #175 Throw bad method call on attempt to call ReadableEnumtrait::readableForValue on non backed enum (@ogizanagi) [1a1c3d6] feature #1
[c447d57] minor #175 Throw bad method call on attempt to call ReadableEnumtrait::readableForValue on non backed enum (@ogizanagi) [1a1c3d6] feature #170 Allow to provide extra values to EnumCase attribute (@ogizanagi)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v2.0.0-alpha.1...v2.0.0-alpha.3
[55781e1] minor #171 [Docs] Mention the official Doctrine ORM integration (@ogizanagi) [ec16823] bug #174 Override the block prefix (@benji07)
[55781e1] minor #171 [Docs] Mention the official Doctrine ORM integration (@ogizanagi) [ec16823] bug #174 Override the block prefix (@benji07)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v2.0.0-alpha.1...v2.0.0-alpha.2
[e841eb6] feature #165 V2: Rewrite with PHP 8.1 enums (@ogizanagi)
[e841eb6] feature #165 V2: Rewrite with PHP 8.1 enums (@ogizanagi)
Which includes:
[0bc5a0b] feature #167 Add VarDumper caster for readables (@ogizanagi) [e4dacde] feature #168 Add VarDumper caster for flag bag (@ogizanagi) [2aefece] feature #169 [HttpKernel] Add a controller argument resolver for backed enums (@ogizanagi)
[ 400030f ] bug #218 [Validator] Fix 1.x enum constraint with named arguments (ogizanagi)
[306c78d] minor #189 [Docs] Explain how to use enums with Doctrine ORM QueryBuilder (pluk77) [7266715] minor #196 Add context to (de)normalizer suppor
[306c78d] minor #189 [Docs] Explain how to use enums with Doctrine ORM QueryBuilder (pluk77) [7266715] minor #196 Add context to (de)normalizer support check (mbrodala) [f4a08aa] minor #216 allow int enum to be normalized as int (maximecolin)
[7d08ee2] minor #173 fix phpstan phpdoc (@Kleinast)
[7d08ee2] minor #173 fix phpstan phpdoc (@Kleinast)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v1.17.0...v1.17.1
[0d11457] minor #160 Fix typo (extra backtick character) in README (@sarim) [1c944e3] bug #162 Do not trigger a deprecation on FQCN as both keys and v…
[9440cbd] minor #155 [CI] Use Flex for testing multiple Symfony versions (@ogizanagi) [ed782a9] minor #156 Fix 5.4 deprecs & types (@ogizanagi) [bbc7f2e] feature #157 Allow Symfony 6 (@ogizanagi) [f2e761a] feature #132 Support default value for generated Doctrine types (@mbrodala) [a27eece] feature #158 Support for denormalizing XML to an integer Readable enum (@ogizanagi) [40a1a5a] minor #159 [CI] Limit mongo tests to edges checks (@ogizanagi)
[0d11457] minor #160 Fix typo (extra backtick character) in README (@sarim) [1c944e3] bug #162 Do not trigger a deprecation on FQCN as both keys and values in Doctrine types config (@ogizanagi) [33cfb10] minor #163 [CI] Prepare for next SF & PHP versions (@ogizanagi) [89772dd] minor #164 [Docs] Hints about the PHPStan annotations (@ogizanagi)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v1.16.0...v1.17.0
This version fixes Symfony 5.4 types deprecations and allows Symfony 6. A minor BC break is expected if you extended some of the DBAL type methods, du…
This version fixes Symfony 5.4 types deprecations and allows Symfony 6. A minor BC break is expected if you extended some of the DBAL type methods, due to #156.
This release also adds support for Doctrine DBAL types default value on null from configuration, as well as better support for XML/CSV denormalization of integer based enums.
[bbc7f2e] feature #157 Allow Symfony 6 (@ogizanagi) [f2e761a] feature #132 Support default value for generated Doctrine types (@mbrodala) [a27eece] feature #158 Support for denormalizing XML to an integer Readable enum (@ogizanagi) [9440cbd] minor #155 [CI] Use Flex for testing multiple Symfony versions (@ogizanagi) [ed782a9] minor #156 Fix 5.4 deprecs & types (@ogizanagi) [40a1a5a] minor #159 [CI] Limit mongo tests to edges checks (@ogizanagi)
Full Changelog: https://github.com/Elao/PhpEnums/compare/v1.16.0...v1.17.0-beta.1
[7d4cb3c] bug #150 fix collection enum types for ODM (@IonBazan) [345586f] feature #153 add native jsonSerialize (@IonBazan) [075003f] bug #152 handle
[7d4cb3c] bug #150 fix collection enum types for ODM (@IonBazan) [345586f] feature #153 add native jsonSerialize (@IonBazan) [075003f] bug #152 handle readable enums that contain values which need escaping in javascript (@bendavies)
[2727f3c] minor #148 Improve PHPStan and Psalm annotations (@B-Galati, @IonBazan)
[2727f3c] minor #148 Improve PHPStan and Psalm annotations (@B-Galati, @IonBazan)
[f7308ab] minor #144 improve return types phpdocs (@IonBazan) [097c995] feature #146 add Stringable interface (@IonBazan) [e8e3c73] feature #145 Add D
[f7308ab] minor #144 improve return types phpdocs (@IonBazan) [097c995] feature #146 add Stringable interface (@IonBazan) [e8e3c73] feature #145 Add Doctrine ODM bridge (@IonBazan) [c533ec1] minor #147 Don't always require mongodb for tests (@ogizanagi)
[baf6165] bug #139 138: Fix Api Platform swagger documentation for nullable enum (@romain-coiffard) [5b57142] bug #141 Add requiresSQLCommentHint to A
[baf6165] bug #139 138: Fix Api Platform swagger documentation for nullable enum (@romain-coiffard) [5b57142] bug #141 Add requiresSQLCommentHint to AbstractJsonCollectionEnumType (@notFloran)
[accf9f5] minor #127 Fix return type for Enum::instances() (devster) [bee09af] minor #131 Fix phpdoc return types (IonBazan)
[accf9f5] minor #127 Fix return type for Enum::instances() (devster) [bee09af] minor #131 Fix phpdoc return types (IonBazan)
[32a9e1a] minor #128 Document usage with easy admin 3 bundle (pluk77, ogizanagi) [ac3b8e1] minor #133 Use GitHub Actions (IonBazan) [a1717cc] minor #137 fixing Windows tests (IonBazan) [0fbdccf] minor #136 [CI] Add dedicated lint job + minor workflow tweaks (ogizanagi)
[69a74a3] feature #123 120: add nullability and arrays to ElaoEnumType for API platform (JenniferSpry, ogizanagi)
[69a74a3] feature #123 120: add nullability and arrays to ElaoEnumType for API platform (JenniferSpry, ogizanagi)
[59768df] feature #112 Drop PHP & Symfony EOL versions & fix Symfony 5.2 & PHP 8 build (ogizanagi) [fc6c4b2] feature #114 [Validator] Allow to use Enu
[59768df] feature #112 Drop PHP & Symfony EOL versions & fix Symfony 5.2 & PHP 8 build (ogizanagi) [fc6c4b2] feature #114 [Validator] Allow to use Enum constraint with PHP8 attributes (ogizanagi) [a7f1003] minor #115 Run & fix inspections (ogizanagi) [f7badd1] feature #113 Expose Enum static methods to Twig (Tom32i, ogizanagi)
This is the last release with PHP 7.0, 7.1, 7.2 and Symfony 3.4 support.
This is the last release with PHP 7.0, 7.1, 7.2 and Symfony 3.4 support.
[089b783] bug #109 Fix invalid libPath on windows when using unix path in config (Jan Christoph Beyer) [49cece6] bug #111 Add appveyor configuration & fix Windows issues (Jan Christoph Beyer)
[373ecfa] bug #107 Fix autodiscovered values contiguous indices (ogizanagi)
[373ecfa] bug #107 Fix autodiscovered values contiguous indices (ogizanagi)
[8b25099] feature #98 Allow user to create collection of enum with doctrine (benji07) [108224a] minor #99 Some tweaks & tests for enum collection DBAL
[8b25099] feature #98 Allow user to create collection of enum with doctrine (benji07) [108224a] minor #99 Some tweaks & tests for enum collection DBAL type (ogizanagi) [a60f10c] minor #101 Added ./link binary for contribs (ogizanagi) [c18e779] bug #102 Fix legacy DBAL types format BC (ogizanagi) [cd28793] feature #100 [Doctrine DBAL] Support both CSV and JSON collection types (ogizanagi)
[be5e1ea] bug #95 Fix caster: use interface instead of implementation (ogizanagi) [11f637c] minor #97 Add test for EnumProvider (marvincaspar) [89600f
[be5e1ea] bug #95 Fix caster: use interface instead of implementation (ogizanagi) [11f637c] minor #97 Add test for EnumProvider (marvincaspar) [89600f4] feature #96 Allow to discover values from other classes (ogizanagi)
[3b5fc31] minor #88 [Travis] Update matrix: PHP 8 & Sf 5.2-dev (ogizanagi) [c79942e] feature #89 Allow to generate JavaScript enums from PHP (ogizanag
[3b5fc31] minor #88 [Travis] Update matrix: PHP 8 & Sf 5.2-dev (ogizanagi) [c79942e] feature #89 Allow to generate JavaScript enums from PHP (ogizanagi)
[48b842f] minor #85 Update readme for symfony translation extractor integration (@danut007ro) [c5840cc] feature #84 add ApiPlatform ElaoEnum schema ty
[48b842f] minor #85 Update readme for symfony translation extractor integration (@danut007ro) [c5840cc] feature #84 add ApiPlatform ElaoEnum schema type (@WhiteRabbitDE) [8a63c35] feature #87 [Doctrine] Allow to configure ENUM(...values) SQL declaration (@ogizanagi)
[b3db082] minor #79 Simplify require-dev dependencies (@IndraGunawan) [a698e31] minor #80 group generated type class by namespace (@IndraGunawan) [6cf
[b3db082] minor #79 Simplify require-dev dependencies (@IndraGunawan) [a698e31] minor #80 group generated type class by namespace (@IndraGunawan) [6cfee92] feature #81 Add symfony translation extractor (@danut007ro) [f4f9c91] minor #82 Minor translation extractor config enhancements (@ogizanagi)
[8e835f2] bug #78 Fix: Add check for user callback in validator (#70) (@kevinlelo)
[8e835f2] bug #78 Fix: Add check for user callback in validator (#70) (@kevinlelo)
[e3397a1] feature #75 Add the Symfony bundle (ogizanagi) [3c0a55b] feature #77 [Faker] Allow to generate an array of random enum instances (ogizanagi)
[e3397a1] feature #75 Add the Symfony bundle (ogizanagi) [3c0a55b] feature #77 [Faker] Allow to generate an array of random enum instances (ogizanagi) [3afa22c] feature #76 Allow to generate doctrine DBAL types from config (ogizanagi)
[3e8fe1b] minor #67 Use defined call to check if constant exists (pierredup) [7fae338] minor #68 Rename services in readme.md (benji07) [076de19] mino
[3e8fe1b] minor #67 Use defined call to check if constant exists (pierredup)
[7fae338] minor #68 Rename services in readme.md (benji07)
[076de19] minor #71 Some fixes to be more SF4 compliant (alanpoulain)
[7a8ed35] feature #72 Bump deps (drop Sf < 3.4 official support) (ogizanagi)
[5e5884a] feature #74 Allow Symfony5 (benji07)
[a24e832] bug #66 Fix EnumCaster for enums with non-enumerable public constants (@ogizanagi)
[a24e832] bug #66 Fix EnumCaster for enums with non-enumerable public constants (@ogizanagi)
[d9744c1] bug #64 Fix Enum constraint deserialization (@ogizanagi)
[d9744c1] bug #64 Fix Enum constraint deserialization (@ogizanagi)
…(@ostrolucky) [576a2fe] minor #63 Fix deprecations & update travis for new Sf & PHP versions (@ogizanagi) [6b8b6b2] minor #62 Enhance README.md a bit…
This releases brings a new HTTP Kernel enum resolver to transform a request parameter into an enum instance in controller arguments.
[c76106a] minor #60 Fix return type in ValueToEnumTransformer::transform (@ostrolucky) [0c6569c] feature #59 Add EnumValueResolver (@ostrolucky) [576a2fe] minor #63 Fix deprecations & update travis for new Sf & PHP versions (@ogizanagi) [6b8b6b2] minor #62 Enhance README.md a bit (@ogizanagi) [49ecce2] minor #61 Update php-cs-fixer v2.12 & add @compiler_optimized native func rule (@ogizanagi)
[b71ac30] bug #57 SimpleChoiceEnum is supposed to be abstract (@ogizanagi)
[b71ac30] bug #57 SimpleChoiceEnum is supposed to be abstract (@ogizanagi)
Mainly brings the choice enums concept and Symfony Form integrations enhancements.
Mainly brings the choice enums concept and Symfony Form integrations enhancements.
[7ac0c29] minor #42 Fix cs-fixer config (@ogizanagi) [ea73095] minor #43 Use native sql type (@nervo) [7fb3966] feature #48 Add ScalarToEnumTransformer (@ostrolucky) [52c6306] feature #50 Allow usage of FCQN instead of aliases in Faker provider (@ostrolucky) [c575970] feature #49 Add ChoiceEnumTrait & SimpleChoiceEnum (@ogizanagi) [5c487f4] bug #53 Fix Autodiscovered values must only be int or string (@ogizanagi) [eeeaf12] minor #54 Fix EA extended inspections (@ogizanagi) [f34537f] feature #55 Add EnumType choices_as_enum_values option (@ogizanagi) [2863118] minor #56 Rename ScalarToEnumTransformer to ValueToEnumTransformer (@ogizanagi)
This release brings official Symfony 4.0 support.
This release brings official Symfony 4.0 support.
[36da43d] feature #38 Update symfony 4 compatibility (@benji07, @ogizanagi)
[e9095a6] minor #40 Update cs-fixer & rules (@ogizanagi) [527629c] minor #41 Minor deps changes (@ogizanagi)
[a1edb3f] Fix missing annotation on enum validator constraint (@ogizanagi)
[a1edb3f] Fix missing annotation on enum validator constraint (@ogizanagi)
This release mainly introduces a VarDumper caster for enums:
This release mainly introduces a VarDumper caster for enums:
| HTML | CLI |
|---|---|
| <img width="281" alt="dump-html" src="https://user-images.githubusercontent.com/2211145/27887689-4cf5f93c-61e2-11e7-8e30-27f5a722cc52.png"> | <img width="281" alt="dump-cli" src="https://user-images.githubusercontent.com/2211145/27887690-4cf7f598-61e2-11e7-8c6e-4ba8cfe21406.png"> |
[1e06d8d] Add a VarDumper caster (@ogizanagi)
[5325521] Remove old date in copyright and php cs fixer config (@NicolasDievart)
[0206253] AutoDiscoveredValuesTrait: do only autodiscover public constants (@ogizanagi)
[0206253] AutoDiscoveredValuesTrait: do only autodiscover public constants (@ogizanagi)
[2cee949] Fix Nelmio/Alice tag for Faker provider (@xavier-rdo)
[92bb0e6] Provide a Faker Enum Provider Bridge (@xavier-rdo) [d2af391] Base FlaggedEnum::readables() implementation (@ogizanagi) [7e6766c] Add an Auto
[92bb0e6] Provide a Faker Enum Provider Bridge (@xavier-rdo) [d2af391] Base FlaggedEnum::readables() implementation (@ogizanagi) [7e6766c] Add an AutoDiscoveredValuesTrait to automatically guess values from constants (@ogizanagi)
[9800a9e] Replaced mixed to int|string where appropriate (@ogizanagi) [86b538d] Update travis and dependencies (@ogizanagi)
Nothing published for this version
[d04a1a6] Add Symfony Validator Enum constraint (@ogizanagi)
[d04a1a6] Add Symfony Validator Enum constraint (@ogizanagi)
[8adc873] FlaggedEnum::accepts should not throw any exception (@ogizanagi)
[741ec7f] Mention the multiton pattern (@ogizanagi) [0255514] Add PHP7 requirement badge (@xavier-rdo)
[35445d9] Use null coalescing operator (@ogizanagi)
This release simply continues the job started in 7f7ab9e, which aims to better reflect enum types immutability and enum values acting as singletons.
This release simply continues the job started in 7f7ab9e, which aims to better reflect enum types immutability and enum values acting as singletons.
[1ea250e] [BC BREAK] Rename flagged enums add/remove to with/without (@ogizanagi)
[618ae73] Reduce the size of the generated archive by using gitattributes (@ogizanagi) [e7afccd] [BC BREAK] Make enum construct final and suggest to m
[618ae73] Reduce the size of the generated archive by using gitattributes (@ogizanagi) [e7afccd] [BC BREAK] Make enum construct final and suggest to make enum classes final (@ogizanagi) [7f7ab9e] [BC BREAK] Rename EnumInterface::create to get (@ogizanagi) [160cf41] Lower requirements for provided integrations (allow sf 2.8) (@ogizanagi)
[d34cec0] Fix issues spotted by Scrutinizer (@ogizanagi) [a452534] Fix some data transformers exceptions issues (@ogizanagi)
[7d8dc2a] How to compare enums (@ogizanagi) [631b6af] Mention valid and invalid use cases for enumerations (@ogizanagi) [792bfef, 975799e] Improve documentation (@xavier-rdo, @chalasr)
[679617f] Allow enums to be created using callStatic (@benji07, @ogizanagi) [b2ffe49] Enum values as singletons (@ogizanagi) [dce810c] Add __toString
[679617f] Allow enums to be created using callStatic (@benji07, @ogizanagi) [b2ffe49] Enum values as singletons (@ogizanagi) [dce810c] Add __toString method inside ReadableEnumInterface (@ogizanagi)
[d9150bb] Explain reasons for developing another library (@ogizanagi) [847d462] [Doc] Review integrations doc organization (@ogizanagi)
Nothing published for this version
One column per quarter.