PHPackages                             scaleupstack/annotations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. scaleupstack/annotations

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

scaleupstack/annotations
========================

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

v1.2.0(6y ago)0471BSD-3-ClausePHPPHP &gt;=7.2.0CI failing

Since Sep 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/scaleupstack/annotations)[ Packagist](https://packagist.org/packages/scaleupstack/annotations)[ RSS](/packages/scaleupstack-annotations/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

ScaleUpStack/Annotations
========================

[](#scaleupstackannotations)

About
-----

[](#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
------------

[](#installation)

Use [Composer](https://getcomposer.org) to install this library:

```
$ composer require scaleupstack/annotations

```

Introduction
------------

[](#introduction)

This library is not yet documented. But perhaps [scaleupstack/metadata](https://github.com/scaleupstack/metadata) can be helpful to find out how to use it.

TODO: to be done

Current State
-------------

[](#current-state)

This library has been developed with a special intention in mind. It will evolve in the context of [scaleupstack/metadata](https://github.com/scaleupstack/metadata), and [scaleupstack/easy-object](https://github.com/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
----------

[](#contribute)

Thanks that you want to contribute to ScaleUpStack/Annotations.

- Report any bugs or issues on the [issue tracker](https://github.com/scaleupstack/annotations/issues).
- Get the source code from the [Git repository](https://github.com/scaleupstack/annotations).

License
-------

[](#license)

Please check [LICENSE.md](LICENSE.md) in the root dir of this package.

Copyright
---------

[](#copyright)

ScaleUpVentures Gmbh, Germany
Thomas Nunninger
[www.scaleupventures.com](https://www.scaleupventures.com/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Total

3

Last Release

2392d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/691747f4cbd1862bd8f73353b9958caff9afc5fa6d2ee3a3c9f411d822cee77d?d=identicon)[ScaleUpStack](/maintainers/ScaleUpStack)

---

Top Contributors

[![ThomasNunninger](https://avatars.githubusercontent.com/u/280145?v=4)](https://github.com/ThomasNunninger "ThomasNunninger (40 commits)")

---

Tags

annotationsdocblockdocblock-stylemetadataparserphpphp7phpdocphpdoc-parserphpdocumentorreflectionphpdocparserreflectionannotationsdocblockmetadata

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/scaleupstack-annotations/health.svg)

```
[![Health](https://phpackages.com/badges/scaleupstack-annotations/health.svg)](https://phpackages.com/packages/scaleupstack-annotations)
```

###  Alternatives

[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k910.8M118](/packages/doctrine-lexer)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jan-swiecki/simple-annotations

Simple annotation parser

66615.0k18](/packages/jan-swiecki-simple-annotations)[minime/annotations

The KISS PHP annotations library

229378.6k37](/packages/minime-annotations)[phpowermove/docblock

PHP Docblock parser and generator. An API to read and write Docblocks.

2524.0M4](/packages/phpowermove-docblock)[dannykopping/docblock

A simple library for parsing PHP DocBlock comments

191.8k2](/packages/dannykopping-docblock)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
