2017 © Pedro Peláez
 

library php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

image

diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  • Thursday, June 16, 2016
  • by diversen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 137 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 132 % Grown

The README.md

About

Simple and easy to use documentation system for PHP classes, which generates Markdown output. It works easy with e.g. github.com, as you will be able to include documentation for your classes in README.md files - like the one you probably are looking at now. Best suited for small code libs with maybe a couple of classes., (*1)

Install

composer require diversen/php-markdown-docs

Usage (lib)

    use diversen\markdownDocs;

    $md = new markdownDocs();
    // Class to be generate documentaiton for
    $class = 'diversen\markdownDocs';
    $md->classToMD($class);

    echo $md->getOutput();

Usage (binary)

When the lib is installed you have access to the markdown-docs binary, and you can use in a way similar to this:, (*2)

./vendor/bin/markdown-docs --public 'diversen\markdownDocs'

This will just output the markdown documentation to stdout, so you will need to redirect it, e.g. to a file., (*3)

If you want both private, public, and protected methods in the documentation, you can remove the --public flag. This flag means that only public properties and methods will be included in the output., (*4)

You can run it on any class that is autoloaded with composer autoload.php, (*5)

Class: diversen\markdownDocs


Simple class that generates markdown from php source files (using phpdocs format) The real work is done through Nette\Reflection. See: https://github.com/nette/reflection, (*6)

Properties


Methods


public classToMD
Generates markdown output for a specified class

@param string $class e.g. `PDO` or a user class like `diversen\markdownDocs`

@return void the method adds to $output
public getOutput
Returns the markdown phpdocs

@return string $output the final markdown output

The Versions

16/06 2016

dev-master

9999999-dev https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

16/06 2016

v1.0.8

1.0.8.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

16/06 2016

v1.0.7

1.0.7.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

16/06 2016

v1.0.6

1.0.6.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

16/06 2016

v1.0.5

1.0.5.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

15/06 2016

v1.0.3

1.0.3.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

15/06 2016

v1.0.4

1.0.4.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

15/06 2016

v1.0.2

1.0.2.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

14/06 2016

v1.0.1

1.0.1.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs

14/06 2016

v1.0.0

1.0.0.0 https://github.com/diversen/php-markdown-docs

Generate Markdown documentation from PHP source files. Useful for generating README.md for e.g. github.com

  Sources   Download

MIT

The Requires

 

markdown phpdocs