Registry / serialization / doctrine-annotations

doctrine-annotations

JSON →
library2.0.2phppackagistunverified

Docblock Annotations Parser

composer require doctrine/annotations
INSTALL
IMPORT
SIG · DOCTRINE-ANNOTATIO
D
doctrine-annotations
serializationphpv2.0.2
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 Doctrine\Common\Annotations\AnnotationReader;

Read annotations from a class

use Doctrine\Common\Annotations\AnnotationReader; $reader = new AnnotationReader(); $reflectionClass = new ReflectionClass(MyClass::class); $annotations = $reader->getClassAnnotations($reflectionClass); print_r($annotations);
Debug
Known issues
breakingDoctrine Annotations 2.x requires PHP 8.0+ and uses `doctrine/lexer` 3.x; upgrading from 1.x may break custom annotation classes.
fix
Update custom annotation classes to use PHP 8 attributes or migrate to `doctrine/annotations` 2.x API.
affects: >=2.0.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
doctrine-annotations — pip install doctrine-annotations · libregistry