Setup
-
Make sure you are using Windows Pro since Docker needs hyper-v which is in the pro version
-
Open the Ubuntu CLI app
-
I recommend installing Visual Studio Code with WSL extensions from Microsoft
-
Then you can use the code command to open VS Code from Ubuntu WSL eg.
code .
-
For the best file system performance and proper inotify events clone the git repo code in side of Ubuntu
-
Install git in Ubuntu WSL
sudo apt-get install git
-
sudo apt install php sudo apt install python-software-properties sudo add-apt-repository ppa:ondrej/php sudo apt install php8.0
-
Switch PHP version
sudo update-alternatives --config php
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
-
Install PHP extension for PHP version
sudo apt-get install php8.0-gd php8.0-mcrypt php8.0-curl php8.0-intl php8.0-xsl php8.0-mbstring openssl php8.0-zip php8.0-soap
-
Optionally Install Composer Satis for faster composer installs and easier auth with private packages
git clone https://github.com/composer/satis php bin/satis php bin/satis build satis.json public -vvv