

Just add an empty file HelloWorldController.php in the src/Controller folder. Let's create a new route in our application. Configure VS Code for PHP Autocomplete & Intellisense & Go to definition Go to from your favorite web browser and check that your Symfony website works. You can install them by running the following command:Įcho fs.inotify.max_user_watches=524288 | sudo tee -a /etc/nf You will also probably need Composer, a commonly used dependency manager for PHP. To be able to run PHP code you obviously need to install PHP. Let's start! Prerequisites Install PHP and Composer

I will take an empty Symfony application as an example for this article. The commands will be detailed for Ubuntu 18.04, but they can be adapted for Mac OS and possibly for Windows. In this article, I will explain how I managed to make my development environment comparable to PhpStorm's. Moreover, I didn't want to invest €199 in the famous PHPStorm IDE… 😕 TL DR VS Code extensions you should install and configure for PHP development: I wanted to keep my VS Code habits and proficiency I had from my previous projects in Node.js and Vue.js, so I tried to configure VS Code for PHP development as well. I recently started programming in PHP using the well-known Symfony framework.
