PHPackages                             headoo/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. headoo/annotations

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

headoo/annotations
==================

Docblock Annotations Parser

v2.0(11y ago)021MITPHPPHP &gt;=5.3.2

Since Jan 12Pushed 11y ago12 watchersCompare

[ Source](https://github.com/Headoo/annotations)[ Packagist](https://packagist.org/packages/headoo/annotations)[ Docs](http://www.doctrine-project.org)[ RSS](/packages/headoo-annotations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (11)Used By (0)

Doctrine Annotations
====================

[](#doctrine-annotations)

[![Build Status](https://camo.githubusercontent.com/dadc29fc2c77ac6658493270ba7dc5bbe51c1d2be51fa04d37bcade55dfe29c7/68747470733a2f2f7472617669732d63692e6f72672f646f637472696e652f616e6e6f746174696f6e732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/doctrine/annotations)

Docblock Annotations Parser library (extracted from [Doctrine Common](https://github.com/doctrine/common)).

Changelog
---------

[](#changelog)

### v1.2.0

[](#v120)

- HHVM support
- Allowing dangling comma in annotations
- Excluded annotations are no longer autoloaded
- Importing namespaces also in traits
- Added support for `::class` 5.5-style constant, works also in 5.3 and 5.4

### v1.1

[](#v11)

- Add Exception when ZendOptimizer+ or Opcache is configured to drop comments

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~94 days

Recently: every ~54 days

Total

9

Last Release

4116d ago

Major Versions

v1.2.3 → v2.02015-02-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/56b795cbdb985a1754b01b6f65f28335d10c0d25f2fc2224ac13b0d0764995d3?d=identicon)[ka](/maintainers/ka)

![](https://www.gravatar.com/avatar/d2ccee98cf2a203db5ff965bf51934d3aa579380c76f9cca75ab262cbcf5605c?d=identicon)[headoo](/maintainers/headoo)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (148 commits)")[![schmittjoh](https://avatars.githubusercontent.com/u/197017?v=4)](https://github.com/schmittjoh "schmittjoh (81 commits)")[![FabioBatSilva](https://avatars.githubusercontent.com/u/588172?v=4)](https://github.com/FabioBatSilva "FabioBatSilva (78 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (66 commits)")[![romanb](https://avatars.githubusercontent.com/u/177309?v=4)](https://github.com/romanb "romanb (62 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (46 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (37 commits)")[![chx](https://avatars.githubusercontent.com/u/193045?v=4)](https://github.com/chx "chx (25 commits)")[![gregberge](https://avatars.githubusercontent.com/u/266302?v=4)](https://github.com/gregberge "gregberge (9 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (7 commits)")[![hobodave](https://avatars.githubusercontent.com/u/12404?v=4)](https://github.com/hobodave "hobodave (6 commits)")[![akkie](https://avatars.githubusercontent.com/u/307006?v=4)](https://github.com/akkie "akkie (4 commits)")[![fabpot](https://avatars.githubusercontent.com/u/47313?v=4)](https://github.com/fabpot "fabpot (4 commits)")[![JonathanO](https://avatars.githubusercontent.com/u/1206546?v=4)](https://github.com/JonathanO "JonathanO (3 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (3 commits)")[![Shurakai](https://avatars.githubusercontent.com/u/265444?v=4)](https://github.com/Shurakai "Shurakai (3 commits)")[![victorsmirnov](https://avatars.githubusercontent.com/u/223570?v=4)](https://github.com/victorsmirnov "victorsmirnov (2 commits)")[![BenMorel](https://avatars.githubusercontent.com/u/1952838?v=4)](https://github.com/BenMorel "BenMorel (2 commits)")[![fruit](https://avatars.githubusercontent.com/u/62828?v=4)](https://github.com/fruit "fruit (2 commits)")[![janschoenherr](https://avatars.githubusercontent.com/u/355427?v=4)](https://github.com/janschoenherr "janschoenherr (2 commits)")

---

Tags

parserannotationsdocblock

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/headoo-annotations/health.svg)](https://phpackages.com/packages/headoo-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)[jan-swiecki/simple-annotations

Simple annotation parser

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

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

2524.0M4](/packages/phpowermove-docblock)[creof/geo-parser

Parser for geography coordinate strings

624.4M15](/packages/creof-geo-parser)[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)
