version; // generate Markdown $markdown = docdown(array( 'path' => '../' . $filePath, 'title' => 'Lo-Dash v' . $version . '', 'toc' => 'categories', 'url' => 'https://github.com/lodash/lodash/blob/' . $version . '/lodash.js' )); // save to a `.md` file file_put_contents($outputName . '.md', $markdown); // print header('Content-Type: text/plain;charset=utf-8'); echo $markdown . PHP_EOL; ?>