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: 9 months 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
- Archived: true
- Created: 2017-05-07T12:18:20.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T11:58:03.000Z (over 6 years ago)
- Last Synced: 2025-09-06T19:58:20.409Z (10 months ago)
- Topics: git, php, php71, versioning
- Language: PHP
- Size: 112 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-version
[](https://travis-ci.org/limenet/git-version)
[](https://packagist.org/packages/limenet/git-version)
[](https://packagist.org/packages/limenet/git-version)
[](https://packagist.org/packages/limenet/git-version)
[](https://styleci.io/repos/29427550)
[](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();
```