PHP code example of cheycron / git-changelog

1. Go to this page and download the library: Download cheycron/git-changelog 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/ */

    

cheycron / git-changelog example snippets


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

GitChangelog::parse()->changelog;

Illuminate\Support\Collection Object
(
    [items:protected] => Array
        (
            [0] => Array
                (
                    [hash] => 65d8355b98987bc2153ade2a3d111dccb4723e61
                    [email] => [email protected]
                    [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] => [email protected]
                    [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
                )

php composer.phar update