PHP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Config) |
||
Line 12: | Line 12: | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
===XAMPP=== | |||
<source lang="bash"> | <source lang="bash"> | ||
export XAMPP_HOME=/c/opt/xampp;\ | export XAMPP_HOME=/c/opt/xampp;\ | ||
Line 28: | Line 29: | ||
| valign="top" | | | valign="top" | | ||
===Scratch=== | |||
<source lang="bash"> | <source lang="bash"> | ||
BASE_URL=https://windows.php.net/downloads/releases;\ | BASE_URL=https://windows.php.net/downloads/releases;\ |
Revision as of 01:07, 22 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,var/www/html};\
curl -s https://getcomposer.org/composer-stable.phar>\
$MY_PROJECT_HOME/usr/local/bin/composer
Config
XAMPPexport XAMPP_HOME=/c/opt/xampp;\
export PHP_HOME=$XAMPP_HOME/php;\
export MYSQL_HOME=$XAMPP_HOME/mysql/bin;\
export BIN_HOME=$MY_PROJECT_HOME/usr/local/bin;\
export PATH="$PATH:$PHP_HOME:$MYSQL_HOME:$BIN_HOME"
php -i
php -v
php --ini
composer -v
mysql --version
|
ScratchBASE_URL=https://windows.php.net/downloads/releases;\
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
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
composer config -g -- disable-tls true
|