Yampee Annotations is a PHP library that parses annotations in DocBlocks comments and converts them to PHP objects.
An example ?
<?phpclass TestController
{
/** * @Route('/{page}', name = 'homepage', defaults = {}) */publicfunctionaction()
{
}
}
$reader = newYampee_Annotations_Reader();
$reader->registerAnnotation(newRouteAnnotation());
$annotations = $reader->read(array('TestController', 'action'));But it's much more than this: discover all the possibilities in the documentation !
The documentation is to be found in the doc/ directory.
Yampee Annotations is licensed under the MIT license (see LICENSE file). The Yampee Annotations library is developed and maintained by the Titouan Galopin.