PhpEnums

Extended PHP 8.1+ enums features & specific integrations with frameworks and libraries

MIT License

Downloads
2.6M
Stars
321
Committers
29

Bot releases are hidden (Show)

PhpEnums - v1.15.1

Published by ogizanagi about 3 years ago

Changelog

[2727f3c] minor #148 Improve PHPStan and Psalm annotations (@B-Galati, @IonBazan)

PhpEnums - v1.15.0: ODM types

Published by ogizanagi about 3 years ago

Changelog

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

PhpEnums - v1.14.2

Published by ogizanagi over 3 years ago

Changelog

[baf6165] bug #139 138: Fix Api Platform swagger documentation for nullable enum (@romain-coiffard)
[5b57142] bug #141 Add requiresSQLCommentHint to AbstractJsonCollectionEnumType (@notFloran)

PhpEnums - v1.14.1

Published by ogizanagi over 3 years ago

Changelog

[accf9f5] minor #127 Fix return type for Enum::instances() (devster)
[bee09af] minor #131 Fix phpdoc return types (IonBazan)

Misc

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

PhpEnums - v1.14.0

Published by ogizanagi over 3 years ago

Changelog

[69a74a3] feature #123 120: add nullability and arrays to ElaoEnumType for API platform (JenniferSpry, ogizanagi)

PhpEnums - v1.13.0

Published by ogizanagi almost 4 years ago

Changelog

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

PhpEnums - v1.12.2

Published by ogizanagi almost 4 years ago

This is the last release with PHP 7.0, 7.1, 7.2 and Symfony 3.4 support.

Changelog

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

PhpEnums - Fix autodiscovered values contiguous indices

Published by ogizanagi almost 4 years ago

Changelog

[373ecfa] bug #107 Fix autodiscovered values contiguous indices (ogizanagi)

PhpEnums - Doctrine DBAL collection types

Published by ogizanagi almost 4 years ago

Changelog

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

PhpEnums - v1.11.0

Published by ogizanagi about 4 years ago

Changelog

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

PhpEnums - Generate JavaScript enums from PHP

Published by ogizanagi about 4 years ago

Changelog

[3b5fc31] minor #88 [Travis] Update matrix: PHP 8 & Sf 5.2-dev (ogizanagi)
[c79942e] feature #89 Allow to generate JavaScript enums from PHP (ogizanagi)

PhpEnums - ApiPlatform Swagger type & ENUM SQL

Published by ogizanagi over 4 years ago

Changelog

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

PhpEnums - Translations extractor

Published by ogizanagi over 4 years ago

Changelog

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

PhpEnums - v1.7.1

Published by ogizanagi over 4 years ago

Changelog

[8e835f2] bug #78 Fix: Add check for user callback in validator (#70) (@kevinlelo)

PhpEnums - Symfony Bundle & Generated DBAL Types

Published by ogizanagi over 4 years ago

Changelog

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

PhpEnums - Symfony 5

Published by ogizanagi almost 5 years ago

Changelog

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

PhpEnums - v1.5.2

Published by ogizanagi about 6 years ago

[a24e832] bug #66 Fix EnumCaster for enums with non-enumerable public constants (@ogizanagi)

PhpEnums - v1.5.1

Published by ogizanagi about 6 years ago

[d9744c1] bug #64 Fix Enum constraint deserialization (@ogizanagi)

PhpEnums - v1.5.0

Published by ogizanagi over 6 years ago

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)

PhpEnums - v1.4.1

Published by ogizanagi over 6 years ago

Changelog

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