enum

A workaround for the missing php enum type

OTHER License

Downloads
347.6K
Stars
46
Committers
6
enum - Latest Release

Published by greg0ire over 1 year ago

Added support for Symfony 6 thanks @laurent-bientz !

enum - v4.3.0

Published by greg0ire almost 4 years ago

Added: support for PHP 8 thanks @binotaliu

enum -

Published by greg0ire over 4 years ago

Added support for the new doctrine/inflector API! No more deprecations :)

enum -

Published by greg0ire over 4 years ago

@laurent-bientz fixed issues related to v4.2.0 . Many thanks to him!

enum -

Published by greg0ire over 4 years ago

The labelling feature has been decoupled from the Twig extensions thanks to @laurent-bientz !

enum - Symfony 5 compatibility

Published by greg0ire almost 5 years ago

enum - Symfony 4 compatibility

Published by greg0ire almost 7 years ago

The library is now compatible with Symfony 4!

enum - Expose more Twig methods

Published by greg0ire over 7 years ago

Thanks to @Soullivaneuh , you can now access more AbstractEnum methods inside twig. This can be useful if have important customization needs and can't use native Symfony form widgets. The new functions are :

  • enum_get_constants
  • enum_get_keys
  • enum_get_class_prefixed_keys
enum - Twig 2.0 compatibility

Published by greg0ire almost 8 years ago

Want to move to Twig 2.0 ? greg0ire/enum won't be a blocker :)

enum -

Published by greg0ire over 8 years ago

enum - More is more

Published by greg0ire over 8 years ago

Lots of goodies for symfony components users thanks to @Soullivaneuh ! A form type and a validation constraints were added. This is a minor release according to semver, but it comes with deprecations, check them out if you want to make your migration to 3.0 less painful

enum - Less is more

Published by greg0ire over 8 years ago

Thanks to @Soullivaneuh isValidValue's signature is simplified to drop the $strict parameter, that does not seem very useful. Also, a new getKeys method was added to get all constants, optionally reworked with a closure.

enum - Multiple data source

Published by greg0ire over 9 years ago

This version adds support for fetching constant from several types (classes or interfaces) at once.

enum - support multiple enum usage in one execution

Published by greg0ire about 10 years ago

This version fixes a bug where the same cache would be shared by two different classes.

enum - First stable version

Published by greg0ire over 10 years ago

After a lot of hard work, the first stable version is here. Code coverage : 100% !!!