PHP code example of grajewsky / annotations
1. Go to this page and download the library: Download grajewsky/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/ */
grajewsky / annotations example snippets
use \Annotations\Annotations;
/**
* @Sample value=1
* @SampleTest value=1, test=2
**/
class EntityTestClass {
/**
* @Test
*/
private $test = 1;
}
$annotations = Annotations::read(EntityTestClass::class);
print_r($annotations->annotations(Annotations::ALL_ANNOTATIONS));