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

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

spiral/annotations
==================

Annotations parser using strict node grammar

2.14.1(3y ago)133.7k↑16.7%MITPHPPHP &gt;=7.4

Since Feb 15Pushed 3y ago3 watchersCompare

[ Source](https://github.com/spiral-modules/annotations)[ Packagist](https://packagist.org/packages/spiral/annotations)[ Docs](https://spiral.dev)[ RSS](/packages/spiral-annotations/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (3)Versions (42)Used By (0)

Automatic Annotation Discovery
==============================

[](#automatic-annotation-discovery)

[![Latest Stable Version](https://camo.githubusercontent.com/e285b31f3aa24d88a4fa461b4d21d7079719eebc8ff0d3742487d16802ece325/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f616e6e6f746174696f6e732f76657273696f6e)](https://packagist.org/packages/spiral/annotations)[![Build Status](https://camo.githubusercontent.com/15fd2ff0e2bf10a280894e1f625b6b4e661fefc4dcd92e7e2e213924290ef73e/68747470733a2f2f7472617669732d63692e6f72672f73706972616c2f616e6e6f746174696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/spiral/annotations)[![Codecov](https://camo.githubusercontent.com/4a89e22e4614d5a5a04844323ec6c30b13632c989159ef2e04084e6b406c9f9b/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f616e6e6f746174696f6e732f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/annotations)

Package is deprecated. Please, use `spiral/attributes` instead
--------------------------------------------------------------

[](#package-is-deprecated-please-use-spiralattributes-instead)

Installation
------------

[](#installation)

Service does not require any bootloader and can be enabled in spiral application with simple composer dependency.

```
$ composer require spiral/annotations
```

Example
-------

[](#example)

To find all annotated classes:

```
use Spiral\Annotations;

$locator = new Annotations\AnnotationLocator($classLocator);

foreach($locator->findClasses(MyAnnotation::class) as $class) {
    dump($class->getClass());
    dump($class->getAnnotation());
}
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor2

2 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 ~33 days

Recently: every ~40 days

Total

40

Last Release

1389d ago

Major Versions

v1.0.5 → v2.0.02019-09-13

PHP version history (3 changes)v1.0.0PHP ^7.1|^8.0

2.7.0PHP &gt;=7.2

2.10.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

---

Top Contributors

[![spiralbot](https://avatars.githubusercontent.com/u/100867204?v=4)](https://github.com/spiralbot "spiralbot (17 commits)")[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (13 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (3 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (2 commits)")[![msmakouz](https://avatars.githubusercontent.com/u/67324318?v=4)](https://github.com/msmakouz "msmakouz (1 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")

---

Tags

annotationsparserphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spiral/framework

Spiral, High-Performance PHP/Go Framework

2.1k2.2M65](/packages/spiral-framework)[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[temporal/sdk

Temporal SDK

4072.9M25](/packages/temporal-sdk)[cycle/annotated

Cycle ORM Annotated Entities generator

29793.3k51](/packages/cycle-annotated)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3535.8k3](/packages/wayofdev-laravel-cycle-orm-adapter)

PHPackages © 2026

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