在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):victorjonsson/PHP-Markdown-Documentation-Generator开源软件地址(OpenSource Url):https://github.com/victorjonsson/PHP-Markdown-Documentation-Generator开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):PHP-Markdown-Documentation-GeneratorDocumentation is just as important as the code it's refering to. With this command line tool you will be able to write your documentation once, and only once! This project will write a single-page markdown-formatted API document based on the DocBlock comments in your source code. ExampleLet's say you have your PHP classes in a directory named "src". Each class has its own file that is named after the class.
Write your code documentation following the standard set by phpdoc. namespace Acme;
/**
* This is a description of this class
*/
class MyObject {
/**
* This is a function description
* @param string $str
* @param array $arr
* @return Acme\OtherObject
*/
function someFunc($str, $arr=array()) {
}
} Then, running Here you can see a rendered example Only public and protected functions will be a part of the documentation, but you can also add Requirements
Installation / UsageThis command line tool can be installed using composer. From the local working directory of the project that you would like to document, run:
This will add victorjonsson/markdowndocs to the Generating docsThe
BootstrappingIf you are not using the composer autoloader, or if there is something else that needs to be done before your classes can be instantiated, then you may request phpdoc-md to load a php bootstrap file prior to generating the docs
Excluding directoriesYou can tell the command line tool to ignore certain directories in your class path by using the
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论