PHPackages                             intrfce/enum-attribute-descriptors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. intrfce/enum-attribute-descriptors

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

intrfce/enum-attribute-descriptors
==================================

Use attributes to give your PHP enums titles and descriptions.

v0.5.1(2mo ago)81.7kMITPHPPHP ^8.2CI failing

Since Aug 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/intrfce/enum-attribute-descriptors)[ Packagist](https://packagist.org/packages/intrfce/enum-attribute-descriptors)[ Docs](https://github.com/intrfce/enum-attribute-descriptors)[ RSS](/packages/intrfce-enum-attribute-descriptors/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (8)Versions (9)Used By (0)

Attribute based Enum descriptors.
=================================

[](#attribute-based-enum-descriptors)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d12476b885a8f77781e8907f70fdffe854a6bc6c70d24927315f6c02ab2b1832/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e74726663652f656e756d2d6174747269627574652d64657363726970746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intrfce/enum-attribute-descriptors)[![Total Downloads](https://camo.githubusercontent.com/682880f921ec08cbae20ce449dc6adec233c3b4b13aa18fb6eaf024a024abd03/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e74726663652f656e756d2d6174747269627574652d64657363726970746f72732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/intrfce/enum-attribute-descriptors)[![GitHub Actions](https://github.com/intrfce/enum-attribute-descriptors/actions/workflows/main.yml/badge.svg)](https://github.com/intrfce/enum-attribute-descriptors/actions/workflows/main.yml/badge.svg)

Have you ever written an enum for something and wanted to have a "nice" version of the enum name, so you write something like this:

```
