juliushaertl/phpdoc-to-rst

This package is abandoned and no longer maintained. No replacement package was suggested.

Generate Sphinx/ReStructured documentation from PHPDoc

dev-master 2018-05-28 16:27 UTC

This package is auto-updated.

Last update: 2020-08-27 16:27:44 UTC


README

Documentation Status Build Status Scrutinizer Code Quality

Generate reStructuredText for Sphinx based documentation from PHPDoc annotations.

This project is heavily based on phpDocumentor/Reflection and makes use of sphinxcontrib-phpdomain.

An example for the documentation output can be found in our own documentation

Quickstart

Install phpdoc-to-rst to your project directory:

composer require --dev juliushaertl/phpdoc-to-rst

Run the command line tool to parse the folders containing your PHP tree and render the reStructuredText files to the output directory:

./vendor/bin/phpdoc-to-rst docs/api/ src/