garrcomm / markdown-generator
Class Documentation generator
v1.x-dev
2024-10-23 19:24 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.4
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-23 19:25:08 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:
Library | Markdown file | Config |
---|---|---|
garrcomm/uuid | README.md | .mdgen.json |
garrcomm/networking-utilities | README.md | .mdgen.json |
How to use
Usage is very simple;
- Load this package by composer with
composer require garrcomm/markdown-generator v1.x-dev --dev
- Create a config file (see the list above for examples)
- Execute the generator;
vendor/bin/mdgen mdgen.json