1. Go to this page and download the library: Download syonix/changelog-viewer 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/ */
syonix / changelog-viewer example snippets
use \Syonix\ChangelogViewer\Factory\ViewerFactory;
ViewerFactory::createMarkdownHtmlViewer(__DIR__ . '/../CHANGELOG.md')->build();
$processor = new MarkdownProcessor($path)
->setRegex(array(
'version' => '/^## \[(v.+)\]\((.+)\) - ([\d-]+)/',
'changes_url' => '/^\[See full Changelog\]\((.+)\)/',
'label' => '/^### (.+)/',
'change' => '/^- (.+)/',
));
(new HtmlFormatter($processor))->build();
(new HtmlFormatter($processor))
->title('Changelog')
->modal()
->frame(true)
->styles(true)
->scripts(true)
->downloadLinks(true)
->output();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.