Running on Windows Without PHP
This project is primarily designed for Linux environments but can be easily run on Windows using Docker.
Prerequisites
- Docker Desktop installed and running on your Windows machine
- No need for a local PHP installation or WSL2 configuration
Quick Start
- Open Command Prompt or PowerShell
- Navigate to your desired project location:
cd C:\Users\MyUser\Projects
- Launch a containerized PHP environment with the following command:
docker run -it --rm -v %cd%:/root/tutorial -w /root/tutorial byjg/php:8.4-cli bash
- Once inside the container shell, you can run all PHP commands normally as if you had PHP installed locally. The docker commands you'll run outside.
Note:
Inside the container shell, the folder
~/tutorialor else/root/tutorialis mapped to your current directory on Windows.
Once inside the container, follow the regular Getting Started guide.