2017 © Pedro Peláez
 

library changelog

A http://keepachangelog.com/ parser for the common developer

image

bramdevries/changelog

A http://keepachangelog.com/ parser for the common developer

  • Sunday, February 25, 2018
  • by bramdevries
  • Repository
  • 2 Watchers
  • 14 Stars
  • 1,845 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 18 Versions
  • 10 % Grown

The README.md

Changelog

Parse changelogs like a pro, (*1)

This package makes it easy to parse change logs in the keepachangelog.com format, (*2)

Installation

composer require bramdevries/changelog, (*3)

Usage

Parsing an entire change log

The following change log:, (*4)

```md, (*5)

# Change Log A change log for the change log parser, (*6)

## 0.2.0 - 2014-11-22, (*7)

### Added, (*8)

  • getChanges method to retrieve a single release, (*9)

    0.1.0 - 2014-11-22

    Added

  • getReleases method that retrieves the releases described in a change log, (*10)

  • toJson method that creates a json representation of a change log., (*11)

    ```, (*12)

$parser = new Changelog\Parser(file_get_contents('CHANGELOG.md');
echo $parser->toJson();

Will return, (*13)

{
  "description": "A change log for the change log parser",
  "releases": [
    {
      "name": "0.0.1",
      "date": "2014-11-22",
      "changes": {
        "added": [
          "<code>getReleases</code> method that retrieves the releases described in a change log",
          "<code>toJson</code> method that creates a json representation of a change log."
        ]
      }
    }
  ]
}

Parsing a single release's changelog

eg: If you want to parse a pull request in this format, (*14)

  ### Added
  - Addition 1
  - Addition 2

  ### Changed
  - Change 1
  - Change 2

  ### Removed
  - Removal 1
  - Removal 2
// Assuming $content contains the above markdown
$parser = new Changelog\Parser($content);
echo $parser->getChanges();

returns, (*15)

{
  "added": [
    "Addition 1",
    "Addition 2"
  ],
  "changed": [
    "Change 1",
    "Change 2"
  ],
  "removed": [
    "Removal 1",
    "Removal 2"
  ]
}

The Versions

25/02 2018

dev-master

9999999-dev

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/02 2018

0.10.0

0.10.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/02 2018

dev-develop

dev-develop

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/02 2018

dev-upgrade/dependencies

dev-upgrade/dependencies

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

01/01 2016

0.9.0

0.9.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/12 2015

0.8.0

0.8.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

13/12 2015

0.7.1

0.7.1.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

13/12 2015

dev-release/0.7.1

dev-release/0.7.1

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/11 2015

0.7.0

0.7.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

14/04 2015

0.6.2

0.6.2.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

09/01 2015

0.6.1

0.6.1.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

28/12 2014

0.6.0

0.6.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

28/12 2014

dev-release/0.6.0

dev-release/0.6.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

25/12 2014

0.5.0

0.5.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

23/12 2014

0.4.0

0.4.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

23/12 2014

0.3.0

0.3.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

22/11 2014

0.2.0

0.2.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires

22/11 2014

0.1.0

0.1.0.0

A http://keepachangelog.com/ parser for the common developer

  Sources   Download

The Requires

 

The Development Requires