-
Download PHP
-
Get the ZIP package (Thread Safe or NTS, both contain
php.exe). -
Extract it to a folder, e.g.:
C:\Bcat\php-8.3.26-nts-Win32-vs16-x64
-
Add to PATH
-
Go to Environment Variables → System variables → Path → Edit → New
-
Add the folder path containing
php.exe:C:\Bcat\php-8.3.26-nts-Win32-vs16-x64
-
-
Open a new Command Prompt
-
Run:
php -v -
If you see the PHP version → it’s installed correctly

-
-
Configure in Cursor
-
Open
settings.jsonand add:{ "php.validate.executablePath": "C:\\Bcat\\php-8.3.26-nts-Win32-vs16-x64\\php.exe" }
-
Now Cursor can use PHP for validation and code support.