2017 © Pedro Peláez
 

php git-changelog

Parse changelog directly from Git

image

cheycron/git-changelog

Parse changelog directly from Git

  • Sunday, June 5, 2016
  • by cheycron
  • Repository
  • 1 Watchers
  • 2 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Get current versión and changelog directly from GIT., (*1)

Installation

Add the following to the require section of your projects composer.json file:, (*2)

"cheycron/git-changelog": "1.0.1",

Add this to the config/app.php in the providers array, (*3)

Cheycron\Gitchangelog\GitChangelogServiceProvider::class,

Run composer update to download the package, (*4)

php composer.phar update

Get Current Version

GitChangelog::currentVersion(); // Returns v1.x.x
GitChangelog::append('v2')->preppend(' beta')->currentVersion() // Returns v2.x.x beta

Get Changelog

GitChangelog::parse()->changelog;

will return, (*5)

Illuminate\Support\Collection Object
(
    [items:protected] => Array
        (
            [0] => Array
                (
                    [hash] => 65d8355b98987bc2153ade2a3d111dccb4723e61
                    [email] => author@email.com
                    [author] => Cheycron Blaine
                    [date] => Carbon\Carbon Object
                    [message] => Commit Message
                    [markdown] => Commit Message with Markdown
                    [subject] => First Line of the Commit Message
                    [version] => v1.45
                )
            [1] => Array
                (
                    [hash] => 65d8355b98987bc2153ade2a3d111dccb4723e61
                    [email] => author@email.com
                    [author] => Cheycron Blaine
                    [date] => Carbon\Carbon Object
                    [message] => Commit Message
                    [markdown] => Commit Message with Markdown
                    [subject] => First Line of the Commit Message
                    [version] => v1.44
                )

The Versions

05/06 2016

dev-master

9999999-dev

Parse changelog directly from Git

  Sources   Download

MIT

The Requires

 

by Cheycron Blaine

05/06 2016

1.0.1

1.0.1.0

Parse changelog directly from Git

  Sources   Download

MIT

The Requires

 

by Cheycron Blaine

04/06 2016

1.0

1.0.0.0

Parse changelog directly from Git

  Sources   Download

MIT

The Requires

 

by Cheycron Blaine