Generates docs that rocks your socks off.
Why it rock your socks off:
- Tested code rocks! So it uses your PHPUnit tests as examples.
- Doc comments, like this, are really optional.
- This very documentation was generated by the project itself from the code itself.
More Info:
- Author: Alexandre Gaigalas [email protected]
- Author: Augusto Pascutti [email protected]
Receives the namespace or class to be documented
Example 1:
$doc = new Doc('Respect'); //Full Namespace
$title = 'Respect\Doc\Doc' . PHP_EOL
. '===========';
$this->assertStringStartsWith($title, (string) $doc);
Example 2:
$doc = new Doc('Respect\Doc'); //Specific |class Name
$title = 'Respect\Doc\Doc' . PHP_EOL
. '===========';
$this->assertStringStartsWith($title, (string) $doc);
Returns the documentation in markdown
Example 1:
$class = 'Respect\Doc';
$doc = new Doc($class);
$markdown = (string) $doc;
$doc = file_put_contents('../README.md', $markdown); //Happy Panda
$this->assertStringEqualsFile('../README.md', $markdown);
DocItem Reflection Class to speak where is the socks to rock it.
More Info:
- Author: Ivo Nascimento [email protected]
__construct Construct a doc Item
More Info:
- Access: public
- Return: void
speak Markdownish
More Info:
- Author: Ivo Nascimento [email protected]