Slim-api-doc is a PHP script that generates API Documentation from Slim application source with custom annotations . It is very lite and has no external dependencies . It also supports custom templates , but for now only markdown template is available .
#php slim-doc.php -i input_file.php -o output_file.md
Check an example output here