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

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

smalldb/annotations
===================

Docblock Annotations Parser based on Doctrine Annotations

2.0+1.10.4(5y ago)08311MITPHPPHP ^7.1 || ^8.0

Since Jan 12Pushed 5y agoCompare

[ Source](https://github.com/smalldb/annotations)[ Packagist](https://packagist.org/packages/smalldb/annotations)[ Docs](https://smalldb.org/)[ RSS](/packages/smalldb-annotations/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (30)Used By (1)

Smalldb Annotations
===================

[](#smalldb-annotations)

Docblock Annotations Parser library based on [Doctrine Annotations](https://github.com/doctrine/annotations).

The motivation for this fork of Doctrine Annotations is to ease the implementation of backwards-incompatible features which are difficult to incorporate in such a widely used library.

**Added features:**

- Support for Class constant annotations --- see `Reader::getConstantAnnotations()`.
- `RecursiveAnnotationReader` collects annotations from parent classes in addition to the given class and returns the list of all annotations sorted from the oldest ancestor to the requested class.

**Removed features:**

- All caching readers are removed, because the annotations are further processed and the final result should be cached.
- `AnnotationRegistry` is removed as well in favor of the use of standard PHP autoloader.

Documentation
-------------

[](#documentation)

See the [doctrine-project website](https://www.doctrine-project.org/projects/doctrine-annotations/en/latest/index.html).

Contributing
------------

[](#contributing)

When making a pull request, make sure your changes follow the [Coding Standard Guidelines](https://www.doctrine-project.org/projects/doctrine-coding-standard/en/latest/reference/index.html#introduction).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor4

4 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 ~106 days

Recently: every ~32 days

Total

27

Last Release

2152d ago

Major Versions

1.10.4 → 2.0+1.10.42020-08-11

PHP version history (4 changes)v1.0PHP &gt;=5.3.2

v1.3.0PHP ^5.6 || ^7.0

v1.5.0PHP ^7.1

1.10.3PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16572?v=4)[Josef Kufner](/maintainers/jkufner)[@jkufner](https://github.com/jkufner)

---

Top Contributors

[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (151 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (150 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 (72 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 (47 commits)")[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (42 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (39 commits)")[![jkufner](https://avatars.githubusercontent.com/u/16572?v=4)](https://github.com/jkufner "jkufner (27 commits)")[![chx](https://avatars.githubusercontent.com/u/193045?v=4)](https://github.com/chx "chx (25 commits)")[![mikeSimonson](https://avatars.githubusercontent.com/u/907613?v=4)](https://github.com/mikeSimonson "mikeSimonson (20 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (11 commits)")[![gregberge](https://avatars.githubusercontent.com/u/266302?v=4)](https://github.com/gregberge "gregberge (9 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (9 commits)")[![poldridge](https://avatars.githubusercontent.com/u/6935589?v=4)](https://github.com/poldridge "poldridge (9 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (7 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (7 commits)")[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (7 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (6 commits)")

---

Tags

parserannotationsdocblock

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[doctrine/lexer

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

11.2k959.4M160](/packages/doctrine-lexer)[jan-swiecki/simple-annotations

Simple annotation parser

68638.8k19](/packages/jan-swiecki-simple-annotations)[phpowermove/docblock

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

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

Parser for geography coordinate strings

624.6M14](/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)
