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 3w 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 21% 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

835d 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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