garrcomm/markdown-generator

v1.x-dev 2024-10-23 19:24 UTC

This package is auto-updated.

Last update: 2024-11-23 19:48:21 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.

These projects can be used as an example:

LibraryMarkdown fileConfig
garrcomm/uuidREADME.md.mdgen.json
garrcomm/networking-utilitiesREADME.md.mdgen.json

How to use

Usage is very simple;

  1. Load this package by composer with
    composer require garrcomm/markdown-generator v1.x-dev --dev
    
  2. Create a config file (see the list above for examples)
  3. Execute the generator;
    vendor/bin/mdgen mdgen.json