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

Roave/BetterReflection

:crystal_ball: Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. observed · 2026-09-03

github.com/Roave/BetterReflection · PHP · MIT (permissive) observed · 2026-09-03

Health v2 · maintenance only

98/100

  • Activity 100
  • Release rhythm 94
  • 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: 9.0
  • age_days: 4108
  • days_rel: 42
  • days_push: 0
  • n_releases_24m: 31

Full methodology

Adoption not part of the score

1247 stars · 138 forks observed · 2026-09-03

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

Better Reflection is a PHP library providing an enhanced reflection API that can reflect on classes not yet loaded, from code strings, and expose ASTs of methods and functions. It is designed primarily for static analysis tooling rather than runtime use, where native PHP reflection is faster.

Use cases

  • reflect on PHP classes without loading them
  • extract AST from methods and functions
  • analyze type declarations and doc blocks statically
  • reflect on classes from a string of PHP code
  • build static analysis or code quality tools
  • inspect closures and return types in PHP 7 code

When to choose

  • building static analysis tooling in PHP
  • you need type information or ASTs that native reflection cannot provide
  • you must inspect code without triggering autoloading

When to avoid

  • runtime reflection in performance-sensitive applications
  • you only need features native PHP reflection already offers
  • you need to statically reflect on plain functions

Facets

library · maturity active

parser developer-tools developer-tools programming-languages php cli reflection static-analysis ast php code-introspection

1 source

Member repositories

RepositoryRoleHealth v2
Roave/BetterReflectionmain98

For agents

markdown · JSON · MCP: product_card(name="Roave/BetterReflection")

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