PHPackages                             controlaltdelete/git-version - 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. controlaltdelete/git-version

ActiveLibrary

controlaltdelete/git-version
============================

Find the current git version without using exec

v1.0.0(9y ago)258MITPHPPHP ~7.0CI failing

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/controlaltdelete-nl/git-version)[ Packagist](https://packagist.org/packages/controlaltdelete/git-version)[ RSS](/packages/controlaltdelete-git-version/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

[![Control Alt Delete.nl](images/ControlAltDelete-Github.png)](https://www.controlaltdelete.nl)

This package can be used to find the latest git tag. This can be used in various ways, IE for cache busting of your assets. It does not use exec, shell\_exec, etc. It tries to read the files in your .git folder and retrieve the version from that.

Installation
============

[](#installation)

```
composer require controlaltdelete/git-version

```

Usage
=====

[](#usage)

If the .git folder is the same folder as where the incoming request is made:

```
$version = \ControlAltDelete\GitVersion::find();

```

If the .git folder is somewhere else:

```
$version = \ControlAltDelete\GitVersion::find('path/to/.git/folder');

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

3323d ago

### Community

Maintainers

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

---

Top Contributors

[![michielgerritsen](https://avatars.githubusercontent.com/u/5858697?v=4)](https://github.com/michielgerritsen "michielgerritsen (7 commits)")

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/controlaltdelete-git-version/health.svg)

```
[![Health](https://phpackages.com/badges/controlaltdelete-git-version/health.svg)](https://phpackages.com/packages/controlaltdelete-git-version)
```

PHPackages © 2026

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