Skip to content

uole/DocParse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DocParse

PHP method comment parse

USAGE


class User{

	/**
	 * user add
	 * @name user add
	 * @param int $id  user id
	 * @param string $name user name
	 * @return boolean result  if result is true means add successful otherwise return false
	 */
	public function add($id,$name){
		/**
		* do some thinf
		*/
	}
}

$parse = new DocParse();
$markdown = '';
$user = new User();
$method = new \ReflectionMethod($user, 'add');
$comment =  $method->getDocComment();
if($parse->parse($comment)){
	$markdown = $parse->markdown();
}
echo $markdown;

About

PHP comment parse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages