chrisguitarguy/annotation

A little annotation library

1.0.0 2014-05-29 03:08 UTC

This package is auto-updated.

Last update: 2020-03-22 21:02:30 UTC


README

Build Status

A little PHP library for parsing PHP docblock "annotations"

Example:

<?php
/**
 * This is a docblock.
 *
 * @ThisIsAnAnnotation(argument=2)
 */
 class AClass
 {
    // ...
 }

Goals


* Self-contained
* No nested annotation parsing
* Annotations that are not "registered" are ignored