A library for parsing change logs using the format defined by keepachangelog.com.
composer require mjerwin/parseachangelog
$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;
}
}
Get the version number of the release e.g. 0.2.0
Get the date of the release
Get an array of messages from the Added section
Get an array of messages from the Changed section
Get an array of messages from the Deprecated section
Get an array of messages from the Removed section
Get an array of messages from the Fixed section
Get an array of messages from the Security section
Represents the release as an array
Represents the release in JSON format
Represents the release as XML
Represents thr release as HTML using erusev/parsedown