PHP code example of mjerwin / parseachangelog
1. Go to this page and download the library: Download mjerwin/parseachangelog 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/ */
mjerwin / parseachangelog example snippets
$changelog = new Reader('path_to_changelog.md');
$release = $changelog->getRelease('0.2.0');
print_r($release->getAdded());
$changelog = new Reader('path_to_changelog.md');
$releases = $changelog->getReleases();
foreach($releases as $release)
{
echo $release->getVersion();
foreach ($release->getChanged() as $change)
{
echo $change;
}
}