PHP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
BASE_URL=https://windows.php.net/downloads/releases;\ | BASE_URL=https://windows.php.net/downloads/releases;\ | ||
mkdir -p $MY_PROJECT_HOME/{usr/local/{bin,php},www};\ | mkdir -p $MY_PROJECT_HOME/{usr/local/{bin,php},var/www};\ | ||
curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\ | curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\ | ||
unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\ | unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\ |
Revision as of 22:28, 21 September 2020
mkdir -p /d/tmp/dev/my_ci_project;\
cd /d/tmp/dev/my_ci_project;\
export MY_PROJECT_HOME=`pwd`
BASE_URL=https://windows.php.net/downloads/releases;\
mkdir -p $MY_PROJECT_HOME/{usr/local/{bin,php},var/www};\
curl -s $BASE_URL/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\
unzip -q php.zip -d $MY_PROJECT_HOME/usr/local/php/;\
rm -rf $MY_PROJECT_HOME/php.zip
curl -s https://getcomposer.org/composer-stable.phar>\
$MY_PROJECT_HOME/usr/local/bin/composer
export PHP_HOME=$MY_PROJECT_HOME/usr/local/php;\
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\
export PATH="$PATH:$PHP_HOME:$BIN_HOME"
php -v
composer -v