

In the right content area, make sure to select the correct version of PHP in "PHP language level" and Interpreter dropdowns. Make sure that the Interpreter dropdown has the version you selected. PHPStorm will take you back to the old popup. Add the PHP version you want to use for your Drupal 8 site and press OK. If the one you want already exists, then select it. In the next popup, click on the + icon in top left to add a new PHP interpreter. If that is the case, select on the browse button right next to it. Select your PHP version in the "PHP language level" dropdown. PHPStorm should now create a new project for your Drupal 8 site.Ģ) Configure PHPStorm to work with Drupal 8 Once the PHP version is correct, click on "Finish". If that is the case, make sure that the version of PHP that you want to use for Drupal 8, PHP 5.5 or 5.6, appears in the PATH variable before the other versions. If you have multiple versions of PHP installed on your system, then depending on the PATH environment variable, it is possible that PHPStorm may be using another version. Make sure that PHPStorm is using the right version of PHP. Check "Review PHP settings" checkbox and press "Next". An easy way to enter a value in this field is to make sure that the Project URL below the textfield points to the Drupal 8 site. In my case, it is accessible at so I will enter Web path as "drupal8". In the next step, you need to specify the web path where your Drupal 8 site will be accessible. It is possible that your Apache server may deny you access to In that case, make sure that you check "Don't check HTTP connection to server" checkbox before pressing "Next" otherwise PHPStorm will show you an error. Enter name as "localhost" and Web server root URL as " Click on "Open" and you will see in your broswer. Click on "Add new local server" and then press "Next".įill in the server details.
#Phpstorm export settings how to
In this post, I'll show you how to add a new server. If this is the first time you are using PHPStorm, then you will need to add a new server. If you have already used PHPStorm with other Drupal projects before, you will have an existing server. Now PHPStorm will ask you whether you want to use an existing server or a new server. So I will select this folder and then click on "Project Root" at the top. In my case, I have installed drupal in /Users/neemehta/Sites/drupal8 folder. In the next step, PHPStorm will ask you to select the root folder of the Drupal 8 project. In the next screen, select "Web server is installed locally, source files are located under its document root." and press "Next". Open PHPStorm and select "Create New Project from Existing Files". In my case, the Drupal 8 site is available at 1) Set up a project for Drupal 8 in PHPStorm It is assumed that you have already installed Drupal 8 on your local system and you are able to open the site in your browser.
#Phpstorm export settings code
In this post, you will learn how to configure PHPStorm 9 to debug Drupal 8. By the end of this article, you will be able to stop code execution in PHPStorm by putting a breakpoint. But it requires quite a bit of configuration to make it work. All IDEs that support PHP debugging, such as Eclipse, Netbeans, PHPStorm, etc., provide the functionality to put breakpoints in the code. You can simplify debugging tremendously if you stop code execution using breakpoints and then execute the application one step at a time. But if the problem is more complicated, then that's not sufficient. Devel module provides dsm() and dpm() functions to output variables on the page for debugging Drupal.
