Using PHP 8.1 enumerations in Symfony

Symfony 5.4/6.0 is supporting them since day one

PHP enumeration in action

Forms

Using the new EnumType of Symfony 5.4

Serializer

Using enumerations with the Serializer component

Dependency Injection

XML services configuration using enumerations
YAML services configuration using enumerations

VarExporter

VarExporter exporting an enumeration

Symfony Developer at SensioLabs