Ross ROSS = Recommend OSS · open-source software intelligence for agents

phpstan/phpdoc-parser

Next-gen phpDoc parser with support for intersection types and generics observed · 2026-08-28

github.com/phpstan/phpdoc-parser · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

96/100

  • Activity 98
  • Release rhythm 92
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 20.5
  • age_days: 3209
  • days_rel: 56
  • days_push: 16
  • n_releases_24m: 13

Full methodology

Adoption not part of the score

1533 stars · 74 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PHP library that parses PHPDoc comments into an abstract syntax tree, supporting modern type syntax like generics, intersection types, array shapes, and conditional types. It also parses Doctrine Annotations and provides visitor-based AST traversal for reading and transforming PHPDocs.

Use cases

  • parse phpdoc annotations from php source code
  • extract type information from doc comments
  • modify phpdoc comments programmatically
  • parse generics and intersection types in phpdoc
  • analyze doctrine annotations in php projects
  • build a static analysis tool for php

When to choose

  • you need a robust PHPDoc parser with an AST representation
  • you're building static analysis or code tooling for PHP
  • you need to support modern PHPDoc type syntax like generics and conditional types
  • you need to parse or transform Doctrine Annotations

When to avoid

  • you need to parse PHP code itself rather than PHPDoc comments
  • you need a runtime type validation library rather than a parser
  • your project is not written in PHP

Facets

library · maturity stable

parser static-site-generator parsers developer-tools programming-languages php phpdoc static-analysis ast phpstan doctrine-annotations type-syntax

1 source

Member repositories

RepositoryRoleHealth v2
phpstan/phpdoc-parsermain96

For agents

markdown · JSON · MCP: product_card(name="phpstan/phpdoc-parser")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem