garrcomm / markdown-generator
Class Documentation generator
v1.x-dev
2023-05-22 14:18 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-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;
- Load this package by composer with
composer require garrcomm/markdown-generator --dev
- Create a config file (Example at https://bitbucket.org/garrcomm/php-uuid/src/v1/.mdgen.json)
- Execute the generator;
vendor/bin/mdgen mdgen.json