Decision Workspace
phpdoc-parser vs php-ast vs php-lexer
Side-by-side comparison of Rust crates
58
phpdoc-parser
experimentalv0.21.0
Structural PHPDoc parser. Parses doc-comment blocks into a tag/prose AST with accurate spans; tag bodies exposed as raw text.
62
php-ast
experimentalv0.21.0
PHP Abstract Syntax Tree (AST) node definitions
61
php-lexer
experimentalv0.21.0
PHP lexer/tokenizer
Core Metrics
| phpdoc-parser | php-ast | php-lexer | |
|---|---|---|---|
| Health Score | 58 | 62 | 61 |
| Total Downloads | 4.9K | 9.9K | 9.4K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 93 | 364 | 122 |
| Releases | 21 | 44 | 44 |
| Last Updated | 10d ago | 10d ago | 10d ago |
| Age | 5m | 6m | 6m |
Health Breakdown
phpdoc-parser
Maintenance
18
Quality
13
Community
11
Popularity
4
Documentation
12
php-ast
Maintenance
18
Quality
14
Community
13
Popularity
5
Documentation
12
php-lexer
Maintenance
18
Quality
14
Community
12
Popularity
5
Documentation
12
Technical Details
| phpdoc-parser | php-ast | php-lexer | |
|---|---|---|---|
| Version | 0.21.0 | 0.21.0 | 0.21.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | BSD-3-Clause | BSD-3-Clause | BSD-3-Clause |
| Dependencies | 4 | 3 | 3 |
| Crate Size | 9KB | 70KB | 18KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.88 | 1.88 | 1.88 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •php-ast leads with a health score of 62/100, but none of the options score above 80.
- •php-ast is depended on by 364 crates — strongest ecosystem trust.