Download the PHP package zrnik/php-attribute-reflection without Composer
On this page you can find all versions of the php package zrnik/php-attribute-reflection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zrnik/php-attribute-reflection
More information about zrnik/php-attribute-reflection
Files in zrnik/php-attribute-reflection
Download zrnik/php-attribute-reflection
More information about zrnik/php-attribute-reflection
Files in zrnik/php-attribute-reflection
Vendor zrnik
Package php-attribute-reflection
Short Description Helper methods wrapping around reflection to get attribute instances easily.
License MIT
Package php-attribute-reflection
Short Description Helper methods wrapping around reflection to get attribute instances easily.
License MIT
Please rate this library. Is it a good library?
Informations about the package php-attribute-reflection
Attribute Reflection
Fully tested, phpstan level 9 compliant.
Installation:
composer require zrnik/php-attribtue-reflection
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:
You probably know what its meant to do:
This is what this library does, it just returns the attribute value. Now let's see how this code would work with this library:
The getParameter
method is much better, isn't it? Works the same:
All versions of php-attribute-reflection with dependencies
PHP Build Version
Package Version
Requires
php Version
^8
The package zrnik/php-attribute-reflection contains the following files
Loading the files please wait ....