Template for generating your PHP API documentation in a pretty VuePress format.

v1.0.0-beta.4 2019-02-06 08:21 UTC


Travis Build Status PHP Versions

GitHub release Latest Version Latest unstable Version

License Documentation

Template for generating your PHP API documentation in a pretty VuePress format.

This package provides a phpDocumentor template to generates the API documentation of your code to be integrated in a nice looking VuePress project.

Only tested with the default theme of VuePress.


This template will generate six VuePress *.md files with the DocBlock documentation in your target directory:

  • Entry point of your API Documentation. Contains, at the moment, an introduction and references to blocks used in the site.
  • Contains all classes, sorted by namespace.
  • Contains all interfaces, sorted by namespace.
  • Contains all traits, sorted by namespace.
  • Contains all global constants, sorted by namespace.
  • Contains all global functions, sorted by namespace.


Check a demo of documentation generated with this template in

Explore sources of nelson6e65/phpdoc-vuepress to use configuration files as guide.

A real project API generated using this template:


This template is designed for phpDocumentor 2 and VuePress 0.x. Read more about dependencies in the Documentation.


Install nelson6e65/phpdoc-vuepress with composer:

composer require --dev nelson6e65/phpdoc-vuepress

You may need to set the composer option minimum-stability to 'dev' in order to be able to install pre-releases.


Run phpDocumentor and set template as vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress:

phpdoc -d="src/" -t="docs/api/" --template="vendor/nelson6e65/phpdoc-vuepress/data/templates/vuepress"

More information about the available arguments can be found at running phpDocumentor.


See the Configuration section in the documentation for setup examples.

Further reading

Check the documentation for more information



Copyright (c) 2018-2019 Nelson Martell

Read the LICENSE file for details.

Note: This template is based on Markdown template created by @cvuorinen: cvuorinen/phpdoc-markdown-public.