spiral/annotations

There is no license information available for the latest version (v2.0.0) of this package.

Annotations parser using strict node grammar

v2.0.0 2019-09-13 10:14 UTC

README

Latest Stable Version Build Status Codecov

Installation

Service does not require any bootloader and can be enabled in spiral application with simple composer dependency.

$ composer require spiral/annotations 

Example

To find all annotated classes:

use Spiral\Annotations;

$locator = new Annotations\AnnotationLocator($classLocator); 

foreach($locator->findClasses(MyAnnotation::class) as $class) {
    dump($class->getClass());
    dump($class->getAnnotation());
}