PHPackages                             twc/gitversion-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. twc/gitversion-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

twc/gitversion-bundle
=====================

Extract last git tag to manage app versioning

v1.0.4(3y ago)044MITPHPPHP &gt;=7.2.5

Since Mar 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thewalkingcoder/gitversion-bundle)[ Packagist](https://packagist.org/packages/twc/gitversion-bundle)[ RSS](/packages/twc-gitversion-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

TwcGitVersion
=============

[](#twcgitversion)

Extract last git tag to manage app versioning.

Installation
------------

[](#installation)

```
composer require twc/gitversion-bundle
```

Basic Usage
-----------

[](#basic-usage)

### Configuration

[](#configuration)

keydefinitiondefaultdefault\_versionvalue when tag not existv0.1.0file\_namefile Name including last git tagVERSION```
#If you want to change default value create config/packages/twc_gitversion.yaml

twc_gitversion:
  default_version: 'v0.0.0'
```

### Generate version

[](#generate-version)

```
bin/console twc:generate:version
```

### Get last 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());
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~148 days

Recently: every ~185 days

Total

6

Last Release

790d ago

Major Versions

v1.0.4 → 7.x-dev2024-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6ca9e4f2f4fc47561098d90766068064d857a3b38364d27ebe5d4f4cc648eee?d=identicon)[neocode](/maintainers/neocode)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/twc-gitversion-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/twc-gitversion-bundle/health.svg)](https://phpackages.com/packages/twc-gitversion-bundle)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

310107.9k1](/packages/cognesy-instructor-php)[overtrue/php-opencc

中文简繁转换，支持词汇级别的转换、异体字转换和地区习惯用词转换（中国大陆、台湾、香港、日本新字体）。基于 \[BYVoid/OpenCC\](https://github.com/BYVoid/OpenCC) 数据实现。

12130.7k](/packages/overtrue-php-opencc)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
