# ReflectionDocBlock

> DocBlock parser for PHP, from phpDocumentor

Source: https://talira.ai/catalog/reflectiondocblock-hxh46nnq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / source code](https://talira.ai/categories/developer-tools/parsing/source-code), [languages / php](https://talira.ai/categories/languages/php)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [phpDocumentor](https://talira.ai/orgs/phpdocumentor.md)

ReflectionDocBlock is the DocBlock parser component of [phpDocumentor](https://talira.ai/catalog/phpdocumentor-2qx3zg98.md), compatible with the PHPDoc standard. A library uses it to read annotations and other information embedded in PHP DocBlocks: a DocBlockFactory parses a comment (or any object with a getDocComment() method, such as ReflectionClass) into a DocBlock object whose summary, description and tags can be queried or rendered back to text.

## Links

- GitHub: https://github.com/phpDocumentor/ReflectionDocBlock

## Problems it solves

- read annotations from PHP docblock comments in my library
- parse the summary and @tags out of a PHPDoc comment
- get the @param and @return types written in a PHP docblock

## Features

- parses PHP DocBlocks into summary, description and tags
- follows the PHPDoc standard
- reads a comment string or any object with getDocComment(), such as ReflectionClass
- renders a parsed description back to text

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.69, adoption 0.79, momentum 0.52, community 0.75, backing 0.30, extensibility 0.00.

- last commit 8 days ago
- 14 commits in the last 90 days
- latest release 6.0.3 8 months ago
- 9.4k GitHub stars
- 74 contributors
- accepts sponsorship (Github)
- backed by phpDocumentor

## Related

- Works with [phpDocumentor](https://talira.ai/catalog/phpdocumentor-2qx3zg98.md)

## Sources

[^1]: https://github.com/phpDocumentor/ReflectionDocBlock/blob/6.x/README.md (checked 28 Nov 2026)
[^2]: https://github.com/phpDocumentor/ReflectionDocBlock/blob/6.x/LICENSE (checked 28 Nov 2026)
