Is there a possible way to save the GIT hash within the PHP code or a version number automatically every time you push, or by Javascript, using gulp, save the version in PHP?
I would like to do this so I do not have to manually put the version of the application.
define('VERSION_WEBAPP', '0.6.1');
would be something like:
$git_version = 'pegaria o rash ou número do commit';
define('VERSION_WEBAPP', $git_version);