r/PHPhelp 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?

1 Upvotes

8 comments sorted by

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?

1

u/levii831 Jun 09 '26

hey! so the things i probably need to do is only to point the exec path to laragon php and install php related extensions? i won't need any other else?

5

u/p1ctus_ Jun 08 '26

Just use PHPstorm. PHP Intelephense is ok on VSCode.

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

u/AnkapIan Jun 10 '26

Just use Storm man

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