Registry / utility / spiral-attributes

spiral-attributes

JSON →
library3.1.8phppackagistunverified

PHP attributes reader.

composer require spiral/attributes
INSTALL
IMPORT
SIG · SPIRAL-ATTRIBUTES
S
spiral-attributes
utilityphpv3.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnnotationReader
use Spiral\Attributes\AnnotationReader;

Read PHP attributes from classes.

use Spiral\Attributes\AnnotationReader; $reader = new AnnotationReader(); $attributes = $reader->getClassMetadata(new \ReflectionClass(MyClass::class));
Debug
Known issues
breakingRequires PHP 8.0+ for attributes.
fix
Upgrade PHP to 8.0 or later.
affects: <3.0
Upgrade
Version history
3.1.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
spiral-attributes — pip install spiral-attributes · libregistry