twc / gitversion-bundle
Extract last git tag to manage app versioning
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2.5
- symfony/console: ^5.4|^6.0
- symfony/process: ^5.4|^6.0
Requires (Dev)
- phpunit/phpunit: ^8.5
README
Extract last git tag to manage app versioning.
Installation
composer require twc/gitversion-bundle
Basic Usage
Configuration
#If you want to change default value create config/packages/twc_gitversion.yaml twc_gitversion: default_version: 'v0.0.0'
Generate version
bin/console twc:generate:version
Get last version
with twig
{{ twc_version }}
with php
use Twc\GitversionBundle\Provider\GitVersionProvider; public function home(GitVersionProvider $gitVersionProvider) { $version = $gitVersionProvider->get(); dump($version->toString()); }