2017 © Pedro Peláez
 

library gitinfo

Get some git info about your application

image

eiriksm/gitinfo

Get some git info about your application

  • Tuesday, November 14, 2017
  • by eiriksm
  • Repository
  • 2 Watchers
  • 1 Stars
  • 4,166 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 16 % Grown

The README.md

eiriksm/gitinfo

Packagist Packagist Coverage Status Build Status Violinist enabled, (*1)

A package to get git info from your application. You can use this to display application information about your app, which in turn is useful for generating bug reports or user feedback., (*2)

You can also use it as an indication to your users of your last update of your application., (*3)

This is what powers the version string on Violinist.io where you can get free, automated composer updates for life!, (*4)

Installation

Install with composer:, (*5)

composer require eiriksm/gitinfo

Usage

You use this based on your preferred method of output., (*6)

use eiriksm\GitInfo\GitInfo;
$info = new GitInfo();
$hash = $info->getShortHash(); // Example output: f09037f
$date = $info->getDate(); // Example output (last commit date): 2020-05-31 09:05:40
$version = $info->getVersion(); // Example output: 1.1.1-2-gf09037f, or if on a clean tag: 1.1.1
$app_version = $info->getApplicationVersionString(); // v.1.1.1-2-gf09037f.f09037f (2020-05-31 09:05:40)

Licence

MIT, (*7)

The Versions

14/11 2017

dev-master

9999999-dev

Get some git info about your application

  Sources   Download

The Requires

 

The Development Requires

14/11 2017

1.1.1

1.1.1.0

Get some git info about your application

  Sources   Download

The Requires

 

The Development Requires

17/03 2017

dev-warningDonotrunComposerasrootsuperuserSeehttpsgetcomposerorgrootfordetailswarning

dev-warningDonotrunComposerasrootsuperuserSeehttpsgetcomposerorgrootfordetailswarning

Get some git info about your application

  Sources   Download

The Requires

 

The Development Requires

17/03 2017

1.1.0

1.1.0.0

Get some git info about your application

  Sources   Download

The Requires

 

The Development Requires

17/03 2017

1.0.0

1.0.0.0

Get some git info about your application

  Sources   Download

The Requires

 

The Development Requires