scaleupstack/annotations

Annotations parser for classical DocBlock-style annotations and an extended multi-line declaration.

v1.2.0 2019-10-26 22:07 UTC

This package is auto-updated.

Last update: 2024-10-27 18:22:06 UTC


README

About

This library allows to read annotations in the classical DocBlock style including an extended multi-line declaration.

The built-in set of supported annotations can be extended easily by project-specific extensions.

Installation

Use Composer to install this library:

$ composer require scaleupstack/annotations

Introduction

This library is not yet documented. But perhaps scaleupstack/metadata can be helpful to find out how to use it.

TODO: to be done

Current State

This library has been developed with a special intention in mind. It will evolve in the context of scaleupstack/metadata, and scaleupstack/easy-object.

This results in some known limitations that are no high-priority for this intended purpose.

  • E.g. not all allowed class names in @var are supported (e.g. UTF-8 special chars).

  • Only a sub-set of phpDocumentor annotation tags are built-in.

  • Some limitations are perhaps very strict.

If you are missing anything, feel free to contact me, or create a pull request.

Currently these built-in annotations are implemented:

  • @method

  • @property-read

  • @var

All other annotations are represented as UnknownAnnotation.

Contribute

Thanks that you want to contribute to ScaleUpStack/Annotations.

License

Please check LICENSE.md in the root dir of this package.

Copyright

ScaleUpVentures Gmbh, Germany
Thomas Nunninger thomas.nunninger@scaleupventures.com
www.scaleupventures.com