PHPackages                             zrnik/php-attribute-reflection - 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. zrnik/php-attribute-reflection

ActiveLibrary

zrnik/php-attribute-reflection
==============================

Helper methods wrapping around reflection to get attribute instances easily.

v0.0.1(2y ago)02.0k↓100%1MITPHPPHP ^8

Since Mar 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Zrnik/php-attribute-reflection)[ Packagist](https://packagist.org/packages/zrnik/php-attribute-reflection)[ RSS](/packages/zrnik-php-attribute-reflection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (1)

Attribute Reflection
====================

[](#attribute-reflection)

Fully tested, phpstan level 9 compliant.

### Installation:

[](#installation)

> composer require zrnik/php-attribtue-reflection

### Usage &amp; Reason why this library exists.

[](#usage--reason-why-this-library-exists)

I use attributes on enum cases a lot. It's a good way to put metadata on the cases. Let's look at this example:

```
