PHP code example of donquixote / hasty-reflection-parser
1. Go to this page and download the library: Download donquixote/hasty-reflection-parser 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/ */
donquixote / hasty-reflection-parser example snippets
// Use native reflection and native class loader. This means, all files will be *really* x = ClassIndex_Ast::createSemiNative();
// Class files will be parsed, and NOT _)) . '/vendor/autoload.php';
$classIndex = ClassIndex_Ast::createWithClassLoader(new ClassLoader_Composer($composerClassLoader));
$classReflection = $classIndex->classGetReflection(C::class);
print $classReflection->getDocComment();
assert($classIndex->classGetReflection(C::class) === $classIndex->classGetReflection(C::class));
print $classReflection->getDocComment();