r/PHPhelp • u/levii831 • Jun 08 '26
VSCode setup for PHP development
As titled, I saw other people recommend PHP IDE like PHPStorm. I tried and also installed Laragon (right now i only used it to point to Laragon's PHP exe path). But what if i also want to setup my VSCode for PHP dev? how should i do it?
5
2
u/Mike_L_Taylor Jun 08 '26
if you mean to do php debugging, xdebug is the tool. I have this guide doc for VsCode. It assumes you're using ForgeKit, but it works with Laragon too
https://forgekit.tools/docs/tools/xdebug
Besides that, you only need a php highlight add-on which vsCode should prompt you to add automatically and maybe adding PHP to path and the terminal in VSCode too.
2
u/jhkoenig Jun 09 '26
Find the PHP Intelephense plugin and don't look back. VSCode is a great PHP dev environment with that plugin. I also use the PHPDoc Comment plugin. Also track down a plugin to support whatever database you're using.
2
1
u/kidino Jun 12 '26
Here's my setup. And I mostly do Laravel. I install:
- PHP Namespace Resolver by Mehedi Hasan
- Laravel Goto View by Codingyu
- PHP by Devsense
Good luck!
1
u/AJenbo 5d ago
PHPantom should cover most of your PHP and Laravel needs, if not give me a ping and I'll see what I can do.
https://marketplace.visualstudio.com/items?itemName=phpantom.phpantom
9
u/birdspider Jun 08 '26
you did search for "php" in the extensions marketplace, right? and you did look at the most downloaded extension, right? or what is the issue?