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

doctrine/lexer

Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers. observed · 2026-08-28

github.com/doctrine/lexer · homepage · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

62/100

  • Activity 87
  • Release rhythm 8
  • Longevity 100
How is this computed?

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

  • gap_med: n/a
  • age_days: 4981
  • days_rel: n/a
  • days_push: 80
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

11146 stars · 65 forks observed · 2026-08-28

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

A PHP base library providing an abstract lexer for building Top-Down, Recursive Descent Parsers. It tokenizes input strings and is used internally by Doctrine Annotations and Doctrine ORM's DQL parser.

Use cases

  • write a custom lexer for a DSL in PHP
  • tokenize input strings for a recursive descent parser
  • build a query language parser like DQL
  • parse annotation syntax in PHP
  • walk a string token by token with lookahead

When to choose

  • you are building a top-down or recursive descent parser in PHP
  • you need a small, battle-tested tokenizer base class
  • you are already in the Doctrine ecosystem (ORM, Annotations)

When to avoid

  • you need a full parser generator or grammar tool (use ANTLR or similar)
  • you need high-performance lexing outside PHP
  • you want a ready-made parser for an existing format

Facets

library · maturity stable

parser developer-tools parsers developer-tools programming-languages php lexer tokenizer recursive-descent doctrine dql

9 sources

Member repositories

RepositoryRoleHealth v2
doctrine/lexermain62

For agents

markdown · JSON · MCP: product_card(name="doctrine/lexer")

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