PHP code example of barnythorpe / clarify
1. Go to this page and download the library: Download barnythorpe/clarify library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
barnythorpe / clarify example snippets
use Barnythorpe\clarify\DocBuilder;
use Barnythorpe\clarify\OutputStrategies\MarkdownStrategy;
return DocBuilder::make()
->setOutputStrategy(new MarkdownStrategy())
->startPage('docs/api.md'))
->addHeading('API Documentation', 1)
->addParagraph('This is an example doc.')
->addFile('src/Example.php')
->endPage();
sh
./vendor/bin/clarify build --config=clarify.config.php