1. Go to this page and download the library: Download tomrf/readme-gen 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/ */
tomrf / readme-gen example snippets
$readmeGen = new \Tomrf\ReadmeGen\ReadmeGen('.'); // path to project directory
echo $readmeGen->generate(
new Tomrf\ReadmeGen\Formatter\MarkdownFormatter(
\phpDocumentor\Reflection\DocBlockFactory::createInstance(),
new \phpDocumentor\Reflection\Types\ContextFactory()
),
'resources/template.md'
);
public function __construct(
string $projectRoot
): void
public function generate(
Tomrf\ReadmeGen\Interface\ReadmeFormatterInterface $formatter,
string $templateFilename
): string
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.