silverslice/markdown-api
最新稳定版本:v0.1.1
Composer 安装命令:
composer require silverslice/markdown-api
包简介
Markdown documentation generator
README 文档
README
Install
composer require silverslice/markdown-api
Live example
require __DIR__ . '/../vendor/autoload.php'; $g = new Silverslice\MarkdownApi\Generator(); $g->generate('Silverslice\MarkdownApi\Generator')->output();
This code generates following documentation for class \Silverslice\MarkdownApi\Generator:
generate
Generates markdown documentation for public methods in a specified class
generate($className)
Parameters:
- string $className - Fully qualified class name
Returns:
- $this
save
Saves generated documentation to a file
save($fileName)
Parameters:
- string $fileName - The name of the file
Returns:
- int - The number of bytes that were written to the file, or false on failure
output
Outputs generated documentation
output()
setTemplate
Sets file path for template of a method
setTemplate($file)
Parameters:
- string $file - Path to the template
Throws:
- \InvalidArgumentException - If the file cannot be read
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-06