PHP: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==References== * [https://windows.php.net/download#:~:text=PHP%207.4%20(7.4.10) Download PHP 7.4.10 (Windows)] * [https://windows.php.net/download#:~:text=PHP%207.3%20(7.3.22)...") |
No edit summary |
||
Line 1: | Line 1: | ||
<source lang="bash"> | |||
mkdir -p /d/tmp/dev/my_ci_project;\ | |||
cd /d/tmp/dev/my_ci_project;\ | |||
export MY_PROJECT_HOME=`pwd` | |||
mkdir -p $MY_PROJECT_HOME/{usr/local/{bin,php},www};\ | |||
curl -s https://windows.php.net/downloads/releases/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\ | |||
unzip 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 | |||
</source> | |||
==References== | ==References== | ||
* [https://windows.php.net/download#:~:text=PHP%207.4%20(7.4.10) Download PHP 7.4.10 (Windows)] | * [https://windows.php.net/download#:~:text=PHP%207.4%20(7.4.10) Download PHP 7.4.10 (Windows)] |
Revision as of 22:11, 21 September 2020
mkdir -p /d/tmp/dev/my_ci_project;\
cd /d/tmp/dev/my_ci_project;\
export MY_PROJECT_HOME=`pwd`
mkdir -p $MY_PROJECT_HOME/{usr/local/{bin,php},www};\
curl -s https://windows.php.net/downloads/releases/php-7.4.10-nts-Win32-vc15-x86.zip > php.zip;\
unzip 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