phpstan/phpdoc-parser
phpstan/phpdoc-parser parses PHPDocs into a typed AST so you can read and modify docblocks programmatically. It handles rich types like unions, generics, array shapes, callables, and conditional types, plus Doctrine annotations. Powers PHPStan.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| prinsfrank/phpstan-doc-code-analyzer | 0.89 | Analyze and validate PHP code examples in your documentation using PHPStan. This package scans doc blocks and docs for code snippets, runs static analysis, and helps catch outdated or incorrect examples early in CI. | 2 | 2 | 0 | 2K | 0 | 1.0 | 38.8 | MIT | 1 year ago | |
| phpdocumentor/reflection | 0.88 | Static PHP code reflection library that parses one or more files (no execution) to build an object graph of your application's structure, including DocBlocks. Supports analyzing PHP versions from 5.2 up to your installed PHP version; useful for reflecting whole projects. | 124 | 126 | 60 | 907K | 8 | 26.3 | 60.9 | MIT | 5 months ago | |
| php-static-analysis/phpstan-extension | 0.88 | A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. | 15 | 15 | 0 | 2K | 0 | 0.1 | 30.0 | MIT | 1 year ago | |
| nikic/php-parser | 0.88 | A PHP parser written in PHP that converts PHP 7/8 code into an abstract syntax tree, with tools for dumping, traversing, modifying, and regenerating code, plus name resolution and builders for static analysis and code generation. | 17,466 | 17,540 | 1,145 | 31M | 47 | 83.5 | 79.3 | BSD-3-Clause | 1 month ago | |
| phpstan/phpstan-doctrine | 0.87 | PHPStan extension for Doctrine ORM/ODM: validates DQL and QueryBuilder, infers repository magic methods and EntityManager return types, checks entity field/relationship type mismatches and mapping errors, improves query result typing, and flags proxy-related issues. | 681 | 683 | 125 | 3M | 77 | 57.8 | 87.6 | MIT | 1 week ago | |
| phpdocumentor/type-resolver | 0.87 | Resolves PHP DocBlock types and partial class names into fully qualified names, and resolves structural element references into FQSENs, per PSR-5. Useful for static analysis, documentation generators, and reflection tooling. | 9,152 | 9,160 | 51 | 20M | 3 | 55.2 | 56.7 | MIT | 1 month ago | |
| phpdocumentor/guides-restructured-text | 0.87 | phpDocumentor guides reStructuredText parser. Converts reST documents into structured guide nodes for phpDocumentor’s Guides system, enabling documentation builds from .rst sources with directives, roles, includes, and cross-references. | 0 | 0 | 1 | 15K | 0 | 0.6 | 55.3 | MIT | 2 years ago | |
| phpstan/phpstan-php-parser | 0.87 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| headercat/phpstan-extension-ide-helper | 0.87 | Provides dummy PHPStan namespace classes and functions so IDEs and autocompletion tools can reference PHPStan internals normally hidden inside its PHAR. Install as a dev dependency to get full autocompletion when writing PHPStan extensions. | 9 | 9 | 0 | 5K | 1 | 31.7 | 43.8 | MIT | 1 week ago | |
| doctrine/lexer | 0.86 | Doctrine Lexer is a lightweight base library for building lexers used in top-down, recursive descent parsers. It powers Doctrine Annotations and Doctrine ORM's DQL parser, offering a simple, reliable foundation for tokenizing input. | 11,142 | 11,164 | 68 | 25M | 1 | 49.3 | 53.7 | MIT | 1 month ago | |
| crodas/notoj | 0.86 | Notoj is a lightweight PHP annotation parser that reads docblock annotations with a fast tokenizer, no heavy dependencies. Define annotation classes extending Notoj's base, then parse methods, classes, and properties to build routing, validation, or metadata layers. | 36 | — | 5 | — | 0 | 0.3 | — | — | — |
|
| phpdocumentor/reflection-common | 0.86 | ReflectionCommon provides the shared interfaces and base classes behind phpDocumentor's reflection layer, defining common contracts for elements, types, and locations used across the ecosystem. A lightweight, dependency-free foundation for building reflection-based tooling in PHP. | 9,031 | 9,044 | 22 | 12M | 0 | 47.6 | 50.4 | MIT | 1 month ago | |
| symplify/simple-php-doc-parser | 0.86 | Simple PHP Doc Parser by Symplify is a lightweight library for reading PHP docblocks. It extracts comments, tags, and annotations from classes, methods, and properties through a simple API, making PHPDoc data easy to use in static analysis, code generation, and documentation tools. | 0 | 24 | — | 480 | — | 0.0 | 37.1 | — | — | |
| phpstan/extension-installer | 0.86 | Composer plugin that automatically discovers and installs PHPStan extensions, eliminating manual includes in phpstan.neon. Add it as a dev dependency, allow the plugin in Composer, and extensions can declare includes via extra.phpstan for auto-setup. | 516 | 520 | 31 | 6M | 1 | 8.2 | 55.2 | MIT | 2 years ago | |
| phpdocumentor/phpdocumentor | 0.86 | phpDocumentor is the de-facto documentation tool for PHP, generating complete API docs from your source code and DocBlocks, with UML diagrams plus Markdown and RestructuredText support to keep docs and code in sync. | 4,349 | 4,421 | 646 | 14K | 139 | 76.5 | 37.5 | MIT | 5 months ago | |
| phpdocumentor/reflection-docblock | 0.85 | A DocBlock parser fully compatible with the PHPDoc standard. Use its DocBlockFactory to read summaries, descriptions, tags, and annotations from doc comments or reflection classes, so your library can extract embedded documentation and metadata. | 0 | 9,379 | — | 19M | — | 9.9 | 55.3 | — | — | |
| php-di/phpdoc-reader | 0.85 | PhpDocReader parses @var and @param docblock types to resolve class names, supporting fully qualified, imported, relative, and aliased names with the same rules as PHP. Primitive types are ignored; only valid class names are returned. Used by PHP-DI. | 73 | 77 | 15 | 629K | 0 | 4.1 | 54.3 | MIT | 6 years ago | |
| mpociot/reflection-docblock | 0.83 | Parse and work with PHP DocBlocks via reflection. mpociot/reflection-docblock extracts summaries, descriptions, tags, params, and return types from classes, methods, and properties, making it easy to generate documentation or build tooling that relies on DocBlock metadata. | 85 | 85 | 4 | 1M | 2 | 1.5 | 55.1 | MIT | 10 years ago | |
| phpdocumentor/guides | 0.82 | phpDocumentor Guides is a PHP documentation generator for writing and publishing rich docs in reStructuredText/Markdown. Build structured guides with navigation, code blocks, and theming, and output to HTML or other formats for your project or package. | 2 | 2 | 1 | 8K | 0 | 0.0 | 47.5 | MIT | — |
How can I help you explore Laravel packages today?