Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/limenet/git-version

PHP library to generate a version string based on a Git repository.
https://github.com/limenet/git-version

git php php71 versioning

Last synced: about 1 month ago
JSON representation

PHP library to generate a version string based on a Git repository.

Awesome Lists containing this project

README

        

# git-version
[![Build Status](https://travis-ci.org/limenet/git-version.svg?branch=master)](https://travis-ci.org/limenet/git-version)
[![Latest Stable Version](https://poser.pugx.org/limenet/git-version/v/stable)](https://packagist.org/packages/limenet/git-version)
[![License](https://poser.pugx.org/limenet/git-version/license)](https://packagist.org/packages/limenet/git-version)
[![Total Downloads](https://poser.pugx.org/limenet/git-version/downloads)](https://packagist.org/packages/limenet/git-version)
[![StyleCI](https://styleci.io/repos/29427550/shield)](https://styleci.io/repos/29427550)
[![codecov](https://codecov.io/gh/limenet/git-version/branch/master/graph/badge.svg)](https://codecov.io/gh/limenet/git-version)

## Usage

### Standalone

```php
get(new SemverFormatter());

$file = new File($baseDir);
$version = $file->get(new SemverFormatter());

```

### Laravel

```php
$version = GitVersion::get();
```