zircote/swagger-php
A php swagger annotation and parsing library
What's novel
A php swagger annotation and parsing library
Code Analysis
4 files read · 7 roundsThis project is a static analysis tool that generates OpenAPI specifications from PHP source code by parsing files with php-parser and extracting annotations via reflection.
Strengths
Excellent separation of concerns between scanning (AST), analysis (Reflection + Context), and generation (Pipeline). The use of php-parser for fast, dependency-free scanning combined with Reflection for rich context is a sophisticated architectural choice. Strong modularity with factories and processors allows easy extension.
Weaknesses
Cannot fully evaluate test quality or README accuracy without seeing those files. The reliance on external dependencies like php-parser and Doctrine Annotations adds complexity. Some edge cases in type resolution (e.g., generic types) might be challenging.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
133
Contributors
100
Files
695
Active weeks
39
Repository
Language
PHP
Stars
5292
Forks
946
License
Apache-2.0