garrcomm/markdown-generator

v1.x-dev 2023-05-22 14:18 UTC

This package is auto-updated.

Last update: 2024-04-22 16:45:24 UTC


README

For my code projects, I like to provide proper documentation. Best way, in my opinion, is to start with well-documented code.

To generate markdown formatted documentation based on the codebase, I wrote this small tool.

It uses PHP Reflection to read out code information and formats according to the structure used on php.net documentation.

An example of generated documentation can be found at https://bitbucket.org/garrcomm/php-uuid/src/v1/README.md.

How to use

Usage is very simple;

  1. Load this package by composer with
    composer require garrcomm/markdown-generator --dev
    
  2. Create a config file (Example at https://bitbucket.org/garrcomm/php-uuid/src/v1/.mdgen.json)
  3. Execute the generator;
    vendor/bin/mdgen mdgen.json