File: build/generate_docs.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  PHP Readme Helper  >  build/generate_docs.php  >  Download  
File: build/generate_docs.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Readme Helper
API documentation generator for README files
Author: By
Last change:
Date: 1 month ago
Size: 542 bytes


Class file image Download

require __DIR__ . '/../vendor/autoload.php';

$readmeGenerator = new \voku\PhpReadmeHelper\GenerateApi();

$readmeGenerator->hideTheFunctionIndex = true;

$readmeGenerator->templateMethod = <<<RAW
#### %name%
<a href="#voku-php-readme-class-methods">?</a>




$readmeText = ($readmeGenerator)->generate(
__DIR__ . '/../src/voku/PhpReadmeHelper/GenerateApi.php',
__DIR__ . '/docs/'

file_put_contents(__DIR__ . '/../', $readmeText);

For more information send a message to info at phpclasses dot org.