PHP code example of spiral / annotations
1. Go to this page and download the library: Download spiral/annotations library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spiral / annotations example snippets
use Spiral\Annotations;
$locator = new Annotations\AnnotationLocator($classLocator);
foreach($locator->findClasses(MyAnnotation::class) as $class) {
dump($class->getClass());
dump($class->getAnnotation());
}