PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Michael Cummings   PHP Git Change Log Creator   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Git Change Log Creator
Read git repository logs and create change logs
Author: By
Last change: Update of example.php
Date: 9 months ago
Size: 1,411 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);

/**
 * Contains php example using GitChangeLogCreator class.
 *
 * PHP version 7.1
 *
 * LICENSE:
 * This file is part of git-change-log-creator which is used to create an
 * updated change log file from Git log.
 * Copyright (C) 2014-2019 Michael Cummings
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by the
 * Free Software Foundation, either version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see
 * <https://opensource.org/licenses/GPL-2.0>.
 *
 * You should be able to find a copy of this license in the LICENSE file.
 *
 * @copyright 2014-2019 Michael Cummings
 * @license GPL-2.0
 * @author Michael Cummings <mgcummings@yahoo.com>
 */

use GitChangeLogCreator\GitChangeLogCreator;

include_once
__DIR__ . '/bootstrap.php';
try {
   
$git = new GitChangeLogCreator();
   
$git->getTags()
        ->
getLogs()
        ->
contentGenerator()
        ->
fileGenerate();
} catch (
Exception $e) {
    echo
$e->getMessage();
}