We built a build of web applications on top of the Symfony2 framework.
Now we need to display the current version of our software in the interface for viewing by the user. The version number is currently a tag in the git repository.
Now, what is considered best practice to achieve this? Composer documentation prevents using the version field used in composer.json
Symfony itself seems to set the version line in the app/bootstrap.php.cache file: const VERSION ='2.7.6';
Is there any best practice regarding this issue? Is there a way to directly access the git tag name? Or should I go in a constant or composer.json way?
mpbzh source share