# phpDocumentor

> API documentation generator for PHP

Source: https://talira.ai/catalog/phpdocumentor-2qx3zg98
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / documentation / reference generators](https://talira.ai/categories/developer-tools/documentation/reference-generators), [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)

phpDocumentor generates API documentation for PHP projects from their source code and DocBlock comments. It also draws UML class diagrams (with PlantUML installed), parses reStructuredText and Markdown guides, and can embed parts of the API reference in those guides so they stay in sync with the code. It understands namespaces, closures and generics, parses incrementally from a cached structure file, and takes custom templates. It installs with phive, as a PHAR, as a Docker image or (not recommended by its makers) with Composer.

## Links

- Website: https://www.phpdoc.org/
- GitHub: https://github.com/phpDocumentor/phpDocumentor
- Docs: https://docs.phpdoc.org/

## Problems it solves

- generate API documentation from my PHP docblocks
- publish a reference site for my PHP library
- draw class diagrams of my PHP code base

## Features

- API documentation from PHP source and DocBlocks
- UML class diagrams via PlantUML
- reStructuredText and Markdown guides with embedded API references
- incremental parsing from a cached structure file
- custom templates

## Limitations

- Needs PHP 8.2 or newer to run, though it can document code for older PHP versions.[^1]
- Its makers don't support installing it with Composer, because its dependencies often conflict with a project's own.[^1]

## Trust

Overall: 0.67 out of 1.
Signals: maintenance 1.00, adoption 0.73, momentum 0.41, community 0.93, backing 0.30, extensibility 0.00.

- last commit 8 days ago
- 81 commits in the last 90 days
- latest release v3.10.0 6 months ago
- 4.3k GitHub stars
- 209 contributors
- accepts sponsorship (Github)
- has a company behind it

## Alternatives

- [JSDoc](https://talira.ai/catalog/jsdoc-sb33nq9y.md): API documentation generator for JavaScript from comments in the code
- [Doxygen](https://talira.ai/catalog/doxygen-jhchwqz6.md): Code documentation. Automated. Free, open source, cross-platform.
- [DocFX](https://talira.ai/catalog/docfx-ghfyjykt.md): Static site generator for .NET API documentation
- [Dokka](https://talira.ai/catalog/dokka-708y2m0q.md): API documentation engine for Kotlin
- [mkdocstrings](https://talira.ai/catalog/mkdocstrings-gwahbcm8.md): Automatic documentation from sources, for MkDocs
- [pdoc](https://talira.ai/catalog/pdoc-js34yjv6.md): API documentation for Python projects

## Sources

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