Skip to content

Releases: Elao/PhpEnums

v1.5.0

09 Jun 14:51
v1.5.0
Compare
Choose a tag to compare

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)

v1.4.1

19 Apr 17:36
v1.4.1
Compare
Choose a tag to compare

Changelog

[b71ac30] bug #57 SimpleChoiceEnum is supposed to be abstract (@ogizanagi)

v1.4.0

19 Apr 11:33
v1.4.0
Compare
Choose a tag to compare

Mainly brings the choice enums concept and Symfony Form integrations enhancements.

Changelog

[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)

v1.3.0

09 Nov 08:35
v1.3.0
Compare
Choose a tag to compare

This release brings official Symfony 4.0 support.

Features

[36da43d] feature #38 Update symfony 4 compatibility (@benji07, @ogizanagi)

Minor

[e9095a6] minor #40 Update cs-fixer & rules (@ogizanagi)
[527629c] minor #41 Minor deps changes (@ogizanagi)

v1.2.1

25 Aug 09:47
v1.2.1
Compare
Choose a tag to compare

Bug fix

[a1edb3f] Fix missing annotation on enum validator constraint (@ogizanagi)

v1.2.0

06 Jul 09:22
v1.2.0
Compare
Choose a tag to compare

This release mainly introduces a VarDumper caster for enums:

HTML CLI
dump-html dump-cli

Features

[1e06d8d] Add a VarDumper caster (@ogizanagi)

Misc

[5325521] Remove old date in copyright and php cs fixer config (@NicolasDievart)

v1.1.1

30 Jun 14:11
v1.1.1
Compare
Choose a tag to compare

Bug fix

[0206253] AutoDiscoveredValuesTrait: do only autodiscover public constants (@ogizanagi)

Documentation

[2cee949] Fix Nelmio/Alice tag for Faker provider (@xavier-rdo)

v1.1.0

23 Jun 11:52
v1.1.0
Compare
Choose a tag to compare

Feature

[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)

Misc

[9800a9e] Replaced mixed to int|string where appropriate (@ogizanagi)
[86b538d] Update travis and dependencies (@ogizanagi)

v1.0.0

30 Mar 14:41
v1.0.0
Compare
Choose a tag to compare

First stable release

v0.5.0

28 Nov 08:03
v0.5.0
Compare
Choose a tag to compare

Feature

[d04a1a6] Add Symfony Validator Enum constraint (@ogizanagi)

Bug fix

[8adc873] FlaggedEnum::accepts should not throw any exception (@ogizanagi)

Documentation

[741ec7f] Mention the multiton pattern (@ogizanagi)
[0255514] Add PHP7 requirement badge (@xavier-rdo)

Misc

[35445d9] Use null coalescing operator (@ogizanagi)