PHPackages                             apapsch/describe-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apapsch/describe-version

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

apapsch/describe-version
========================

Composer plugin generating VERSION constant

v0.1.0(6y ago)0310MITPHPPHP ~7.3CI failing

Since Nov 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/apapsch/describe-version)[ Packagist](https://packagist.org/packages/apapsch/describe-version)[ RSS](/packages/apapsch-describe-version/feed)WikiDiscussions master Synced 3w ago

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

Describe Git version in a constant
==================================

[](#describe-git-version-in-a-constant)

This Composer plugin uses your working directory as Git repository and creates the file `version.php` defining the constant `VERSION`with the Git version.

You can use the file how you see fit, i.e. via autoloader.

```
{
    "autoload": {
        "files": [
            "version.php"
        ]
    }
}

```

Usage
=====

[](#usage)

The version string is available in the constant:

```
printf("Using %s\n", VERSION);

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2428d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/apapsch-describe-version/health.svg)

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

###  Alternatives

[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)

PHPackages © 2026

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