Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/limenet/git-version
- Owner: limenet
- License: mit
- Created: 2017-05-07T12:18:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T11:58:03.000Z (almost 5 years ago)
- Last Synced: 2024-10-01T18:10:08.420Z (about 2 months ago)
- Topics: git, php, php71, versioning
- Language: PHP
- Size: 112 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```