I am trying to create a bash script that downloads the latest version of PHP from Github (master branch) and installs it.
I would like to create a folder with a downloadable version (for example, / path / to / php / 5.4.0), but I can not find a single file from the source code saying "hey, I'm XXX version of PHP." See what my simple code does:
url="https://github.com/php/php-src/tarball/master"
curl -L $url > php-temp.tar.gz
tar -zxf php-temp.tar.gz
cd php-php-src*
I was interested in cat | grep several VERSION or README files, but I could not find links to the PHP version among them.
Does anyone know where there is a file that contains this information?
source
share