1. Go to this page and download the library: Download mistralys/changelog-parser 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/ */
mistralys / changelog-parser example snippets
use Mistralys\ChangelogParser\ChangelogParser;
$version = ChangelogParser::parseMarkdownFile('changelog.md')->getVersionByNumber('2.0.0');
echo $version->getFreeformText();
use Mistralys\ChangelogParser\ChangelogParser;
$versions = ChangelogParser::parseMarkdownFile('changelog.md')->getVersions();
foreach($versions as $version)
{
echo $version->getNumber().PHP_EOL;
}
use Mistralys\ChangelogParser\ChangelogParser;
$parser = ChangelogParser::parseMarkdownFile('changelog.md');
$latest = $parser->getLatestVersion();
use Mistralys\ChangelogParser\ChangelogParser;
$parser = ChangelogParser::parseMarkdownFile('changelog.md');
$version = $parser->getVersionByNumber('5.2.0');