2017 © Pedro Peláez
 

library phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

image

cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  • Wednesday, January 3, 2018
  • by cvuorinen
  • Repository
  • 2 Watchers
  • 20 Stars
  • 7,342 Installations
  • HTML
  • 27 Dependents
  • 0 Suggesters
  • 14 Forks
  • 1 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

phpDocumentor markdown-public template

phpDocumentor template that generates Markdown documentation of only the public API. It will skip all abstract classes and non-public methods., (*1)

The main use-case for this template is to generate simple and nice looking usage documentation, that can then be published on GitHub., (*2)

For example, a small library can document it's public API in DocBlock comments, use this template to generate the Markdown documentation and then commit it to GitHub with the library to easily create a nice looking documentation for other developers to see., (*3)

Example of documentation generated with this template: https://github.com/cvuorinen/raspicam-php/tree/master/docs, (*4)

Installation

Install with composer:, (*5)

composer require cvuorinen/phpdoc-markdown-public

Usage

Run phpDocumentor and set template as vendor/cvuorinen/phpdoc-markdown-public/data/templates/markdown-public., (*6)

Example using command-line arguments:, (*7)

./vendor/bin/phpdoc --directory=src/ --target=docs/ --template="vendor/cvuorinen/phpdoc-markdown-public/data/templates/markdown-public" --title="My Project Documentation"

More information about the available arguments can be found at running phpDocumentor., (*8)

Example using configuration file:, (*9)

Add a file called phpdoc.xml with the following content to the root of your project and invoke the phpdoc command without arguments. Modify the configuration to suit your project., (*10)

<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
    <title>My Project Documentation</title>
    <parser>
        <target>build</target>
    </parser>
    <transformer>
        <target>docs</target>
    </transformer>
    <transformations>
        <template name="vendor/cvuorinen/phpdoc-markdown-public/data/templates/markdown-public" />
    </transformations>
    <files>
        <directory>src</directory>
        <ignore>test/*</ignore>
    </files>
</phpdoc>

More information about configuring phpDocumentor., (*11)

The Versions

03/01 2018

dev-master

9999999-dev https://github.com/cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  Sources   Download

MIT

The Requires

 

documentation phpdoc phpdocumentor markdown

03/01 2018

0.2.0

0.2.0.0 https://github.com/cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  Sources   Download

MIT

The Requires

 

documentation phpdoc phpdocumentor markdown

07/02 2016

0.1.2

0.1.2.0 https://github.com/cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  Sources   Download

MIT

The Requires

 

documentation phpdoc phpdocumentor markdown

31/01 2016

0.1.1

0.1.1.0 https://github.com/cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  Sources   Download

MIT

The Requires

 

documentation phpdoc phpdocumentor markdown

14/12 2015

0.1.0

0.1.0.0 https://github.com/cvuorinen/phpdoc-markdown-public

phpDocumentor template that generates Markdown documentation of the public API

  Sources   Download

MIT

The Requires

 

documentation phpdoc phpdocumentor markdown