apapsch/describe-version

Composer plugin generating VERSION constant

Maintainers

Package info

github.com/apapsch/describe-version

Type:composer-plugin

pkg:composer/apapsch/describe-version

Statistics

Installs: 310

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2019-11-08 15:58 UTC

This package is auto-updated.

Last update: 2026-03-09 06:45:05 UTC


README

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

The version string is available in the constant:

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