A workaround for the missing php enum type
OTHER License
Published by greg0ire almost 4 years ago
Added: support for PHP 8 thanks @binotaliu
Published by greg0ire almost 5 years ago
Published by greg0ire almost 7 years ago
The library is now compatible with Symfony 4!
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
Published by greg0ire almost 8 years ago
Want to move to Twig 2.0 ? greg0ire/enum
won't be a blocker :)
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
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.
Published by greg0ire over 9 years ago
This version adds support for fetching constant from several types (classes or interfaces) at once.
Published by greg0ire about 10 years ago
This version fixes a bug where the same cache would be shared by two different classes.
Published by greg0ire over 10 years ago
After a lot of hard work, the first stable version is here. Code coverage : 100% !!!