apapsch / describe-version
Composer plugin generating VERSION constant
Package info
github.com/apapsch/describe-version
Type:composer-plugin
pkg:composer/apapsch/describe-version
v0.1.0
2019-11-08 15:58 UTC
Requires
- php: ~7.3
- composer-plugin-api: ^1.1
- limenet/git-version: ^0.1
- twig/twig: ~2.12
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);