apapsch / describe-version
Composer plugin generating VERSION constant
Installs: 310
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
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: 2024-11-09 03:36:55 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);