phpstan/phpdoc-parser
PHPDoc Parser for PHPStan that parses, represents, and modifies PHPDoc blocks as an AST. Supports rich type syntax (unions, generics, shapes, callables, conditional types), constant expressions, and Doctrine annotations, with full API reference for nodes.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpdocumentor/reflection-docblock | 0.90 | Parse and reflect PHPDoc DocBlocks with a factory-based API. Fully compatible with the PHPDoc standard, it extracts summaries, descriptions, and tags, enabling libraries to read documentation metadata and build annotation-like features from doc comments. | 9,386 | 9,415 | 134 | 8M | 10 | 62.0 | 52.2 | MIT | 3 weeks ago | |
| phpowermove/docblock | 0.88 | Lightweight PHP docblock parser and helper utilities. Extract tags, types, descriptions, and annotations from PHPDoc comments with a simple API—useful for reflection, code generation, static analysis tooling, and custom frameworks needing reliable docblock metadata. | 25 | — | 6 | — | 0 | 20.3 | — | MIT | 4 years ago | |
| nikic/php-parser | 0.83 | Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support... | 17,424 | 17,486 | 1,121 | 15M | 46 | 84.7 | 76.0 | BSD-3-Clause | 4 months ago | |
| microsoft/tolerant-php-parser | 0.79 | Tolerant PHP parser from Microsoft that builds an AST even from incomplete or syntactically invalid code. Ideal for IDEs, refactoring tools, and static analysis, with error recovery and precise source positions for tokens and nodes. | 895 | 896 | 82 | 161K | 54 | 23.2 | 51.0 | MIT | — |
How can I help you explore Laravel packages today?