Skip to content
SPECIFICTION
Get listed

DocFX vs phpDocumentor

DocFX

dotnet.github.io

phpDocumentor

phpdoc.org

Side by side

FigureDocFXphpDocumentor
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYes—
macOSYesYes
LinuxYesYes
APIYes—
Self-hostedYesYes
Plans published11
Spec score · Documentation Generators8.2 (#6)7.6 (#18)
PurposeDocFX builds technical documentation sites from .NET assemblies, XML code comments, REST API Swagger files, and Markdown.phpDocumentor analyzes PHP source code and DocBlock comments to generate API documentation.

Plans

DocFX

  • DocFXFree

DocFX pricing →

phpDocumentor

  • phpDocumentorFree

phpDocumentor pricing →

In their own words

DocFX

DocFX is a free static site generator for technical documentation. It builds documentation from .NET assemblies, XML code comments, REST API Swagger files and Markdown, and can produce rendered HTML pages, JSON models or PDFs. Static HTML output is placed in the `_site` folder for publication to hosting services such as GitHub Pages. DocFX can also be used as a NuGet library through the `Docfx.App` package and .NET APIs. It parses CommonMark-compliant Markdown with Markdig and supports additional extensions. Built-in templates include a modern option with dark mode and customization settings; users can also customize templates with CSS, JavaScript, Mustache templates and metadata. DocFX can generate git links for GitHub, GitLab, Azure Pipelines, AppVeyor, TeamCity and Jenkins. It requires .NET SDK 8.0 or higher. Node.js v20 or higher is optional generally, but required to create PDFs. Native reference documentation generation covers .NET and REST APIs; other languages need a custom API docs converter. PlantUML diagrams use a remote server by default, with local rendering available as a setting.

Visit dotnet.github.io

phpDocumentor

phpDocumentor is a free, open-source, self-hosted tool for analyzing PHP source code and DocBlock comments to produce API documentation. It can generate UML diagrams, parse Markdown and reStructuredText, and insert API-documentation sections into reStructuredText material. The site says full-text search works offline and describes CI integration through a GitHub Action or Docker image. Installation options include Docker, Phive, and a PHAR file; standalone installation requires PHP 8.1.2 or newer plus mbstring, while PlantUML is optional. The official Docker image supplies dependencies locally. The project also offers Composer-installable components for parsing, rendering, type resolution, and PHP reflection. It runs on Linux and macOS. Its Docker Hub overview does not actively support direct Composer installation because dependency conflicts may occur. No paid plans are listed; the plan costs nothing.

Visit phpdoc.org