Get Up and Running with PHP on Windows#
Good news: you don't need WAMP, XAMPP, or any heavy installers in 2025. Just grab the official PHP binaries, unzip, and go!
1. Download the latest PHP zip (Thread-Safe version)#
Go to: https://windows.php.net/download/
- Choose VS16 x64 Thread Safe Zip (recommended for Tina4 and Composer)
- As of November 2025, the latest stable is PHP 8.3.x or 8.4.x
Direct link example (always verify the latest):
https://windows.php.net/downloads/releases/php-8.5.0-nts-Win32-vs17-x64.zip2. Extract to C:\php#
- Unzip the downloaded file
- Create folder
C:\php(if it doesn't exist) - Move all contents into
C:\php
Your folder should now contain php.exe, php.ini-development, etc.
3. Create php.ini#
Copy php.ini-development โ php.ini inside C:\php
bash
copy C:\php\php.ini-development C:\php\php.ini4. Add C:\php to your System PATH#
- Press
Win + Xโ System โ Advanced system settings - Click Environment Variables
- Under System variables, find and edit Path
- Click New โ add
C:\phpโ OK โ OK
Open a new Command Prompt or PowerShell and test:
bash
php -vYou should see the PHP version output.
5. Enable common extensions#
Edit C:\php\php.ini and uncomment the extensions you need (remove the ;):
ini
extension=curlextension=fileinfoextension=gdextension=mbstringextension=opensslextension=pdo_mysqlextension=pdo_sqliteextension=sqlite3; uncomment if you use PostgreSQL;extension=pdo_pgsql6. Install Composer (one-liner)#
In PowerShell or CMD (as Administrator is not required):
powershell
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"php -r "if(hash_file('sha384', 'composer-setup.php') === trim(file_get_contents('https://composer.github.io/installer.sig'))) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); }"php composer-setup.phpphp -r "unlink('composer-setup.php');"move composer.phar C:\php\composer.batNow composer works globally:
bash
composer --version7. (Optional but recommended) Install Xdebug#
bash
# Find your PHP version infophp -i | findstr "PHP Version"โ# Go to https://xdebug.org/wizard and paste the output# Then download the DLL it recommends and place it in C:\php\ext\# Finally add to php.ini:zend_extension=xdebugYou're ready!#
Start a new Tina4 project instantly:
bash
composer create-project tina4stack/tina4-php my-awesome-sitecd my-awesome-sitecomposer startOpen http://localhost:7145, welcome to Tina4 on Windows! ๐