1
There is a possible way to save within the PHP code the GIT hash or a version numbering automatically each time you push, or by Javascript, using Gulp, save the version in PHP?
I would like to do this so I don’t have to put the version manually 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);
A code that does what you seek was given in that answer : code
– Israel Zebulon
That’s not exactly what I need. @Israelzebulon
– Ivan Ferrer