jsuchal / addendum

Automatically exported from code.google.com/p/addendum
GNU Lesser General Public License v2.1
21 stars 3 forks source link

Addendum

DocBlock/JavaDoc annotations support for PHP5. Supporting single and multi valued annotations accessible through extended Reflection API.

Example annotations:

@SimpleAnnotation
@SingleValuedAnnotation(true)
@SingleValuedAnnotation(-3.141592)
@SingleValuedAnnotation('Hello World!')
@SingleValuedAnnotationWithArray({1, 2, 3})
@MultiValuedAnnotation(key = 'value', anotherKey = false, andMore = 1234)

Annotate classes, methods, properties.

Works also if --preserve-docs is disabled.

Checkout ShortTutorialByExample for a quick introduction to annotations using Addendum.