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.3

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 today

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

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

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

[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[lullabot/drainpipe

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

41716.4k2](/packages/lullabot-drainpipe)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[drupol/composer-packages

Composer Packages is a Composer plugin for getting information about installed packages in your project.

32274.0k1](/packages/drupol-composer-packages)[vaimo/composer-changelogs

Provide information about package changes based on changelog files that are bundled with releases; provide tools for generating documentation files from changelog sources

11150.5k10](/packages/vaimo-composer-changelogs)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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