# phpdocumentor/reflectiondocblock

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/phpdocumentor-reflectiondocblock).**

9,383 stars · 136 forks · PHP · MIT

## Links

- GitHub: https://github.com/phpDocumentor/ReflectionDocBlock
- awesome-repositories: https://awesome-repositories.com/repository/phpdocumentor-reflectiondocblock.md

## Topics

`docblocks`

## Description

ReflectionDocBlock is a PHP docblock parser and doc-comment metadata extractor. It functions as a reflection wrapper that extends the standard PHP Reflection API to convert raw documentation blocks into structured objects.

The library provides tools for PHP documentation parsing and reflection tooling. It enables the extraction of structured metadata and annotations from reflection objects or raw doc-comment strings to support automated API documentation and static code analysis.

## Tags

### Programming Languages & Runtimes

- [Docblock Parsing](https://awesome-repositories.com/f/programming-languages-runtimes/string-parsing/docblock-parsing.md) — Extracts structured documentation and metadata by analyzing doc-comments from reflection objects or raw strings. ([source](https://github.com/phpdocumentor/reflectiondocblock#readme))
- [Doc-Comment Extractors](https://awesome-repositories.com/f/programming-languages-runtimes/code-commenting/doc-comment-extractors.md) — Converts raw PHP documentation blocks into structured objects for use in automated documentation tools.
- [PHP Parsers](https://awesome-repositories.com/f/programming-languages-runtimes/php-parsers.md) — Provides a specialized parser for extracting metadata and documentation from PHP docblocks.
- [Doc-Comment Analysis](https://awesome-repositories.com/f/programming-languages-runtimes/php-parsers/doc-comment-analysis.md) — Extracts structured metadata and annotations from PHP doc-comments to automate documentation and analysis.
- [Reflection Wrappers](https://awesome-repositories.com/f/programming-languages-runtimes/reflection-apis/reflection-wrappers.md) — Extends the native PHP Reflection API to capture detailed information stored in doc-comment strings.

### Part of an Awesome List

- [Parsing and Grammars](https://awesome-repositories.com/f/awesome-lists/devtools/parsing-and-grammars.md) — Implements a grammar-based parser to extract structured information and annotations from PHPDoc blocks. ([source](https://github.com/phpdocumentor/reflectiondocblock#readme))
- [Reflection](https://awesome-repositories.com/f/awesome-lists/devtools/reflection.md) — Acts as a reflection wrapper to facilitate deeper analysis of PHP source code documentation.
- [Doc-Comment Extraction](https://awesome-repositories.com/f/awesome-lists/devtools/reflection-and-metadata/doc-comment-extraction.md) — Provides the ability to retrieve raw documentation strings directly from PHP reflection objects for metadata analysis.

### Software Engineering & Architecture

- [Automated API Documentation](https://awesome-repositories.com/f/software-engineering-architecture/automated-api-documentation.md) — Supports automated API documentation by parsing associated docblocks of PHP classes and methods.

### Testing & Quality Assurance

- [Static Code Analysis](https://awesome-repositories.com/f/testing-quality-assurance/static-code-analysis.md) — Enables static code analysis by extracting metadata from PHP source code comments without execution.
