2017 © Pedro Peláez
 

library git-version

Find the current git version without using exec

image

controlaltdelete/git-version

Find the current git version without using exec

  • Sunday, April 9, 2017
  • by michielgerritsen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Control Alt Delete.nl, (*1)

This package can be used to find the latest git tag. This can be used in various ways, IE for cache busting of your assets. It does not use exec, shell_exec, etc. It tries to read the files in your .git folder and retrieve the version from that., (*2)

Installation

composer require controlaltdelete/git-version

Usage

If the .git folder is the same folder as where the incoming request is made:, (*3)

$version = \ControlAltDelete\GitVersion::find();

If the .git folder is somewhere else:, (*4)

$version = \ControlAltDelete\GitVersion::find('path/to/.git/folder');

The Versions

09/04 2017

dev-master

9999999-dev

Find the current git version without using exec

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

by Michiel Gerritsen

09/04 2017

v1.0.0

1.0.0.0

Find the current git version without using exec

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

by Michiel Gerritsen