PhpStorm generates a project stub in accordance with the selected Drupal version. Later you can change the Drupal installation and re-configure the include paths on the Frameworks page as described in Changing the Drupal settings After you leave the dialog, the following paths will be added to the Include Paths list on the PHP page: /includes, /modules, and /sites/all/modules ![]() Select the Set up PHP | Include paths checkbox to have Drupal include paths automatically configured for the project. Specify the root folder of the Drupal installation and choose the version of Drupal to use, the supported versions are 6, 7, 8, and 9.ĭrupal 10 is currently not supported, use version 9 in the IDE settings instead. In the Location field on the right-hand pane, specify the folder where the project will be created. In the left-hand pane, select Drupal Module. After that, the created PhpStorm project opens.Ĭlick Create New Project on the Welcome screen or select File | New | Project from the main menu. As a result, the Composer project will be created, whose configuration and structure depend on the selected package. ![]() The create-project Composer command will be invoked with the selected package. Then choose the relevant version from the Version to install list.Ĭlick Create. To use code completion, press Control+Space. In the Package area, type the name of the desired package in the Package field. Optionally, in the Command line parameters field, type the additional command line parameters. For more information, refer to Configure local PHP interpreters. Then, choose one of the configured local PHP interpreters from the PHP interpreter list. The downloaded composer.phar file will be saved under the project root folder. Then, either specify the location of the existing composer.phar file in the field or select the Download composer.phar from checkbox to download a new instance of the file. To run commands via the local composer.phar archive, choose composer.phar. To run commands via a globally installed composer executable, choose 'composer' executable and specify its location in the field. In the Location field on the right-hand pane, specify the folder where the project will be created.Ĭhoose how the Composer commands will be executed: In the left-hand pane, select Composer Project. After that you can use Composer from the command line or through the user interface.Ĭreating a project is possible only when Composer is run via the configured local PHP interpreter.Ĭhoose File | New Project or click New Project on the Welcome screen. ![]() In this case, Composer will be initialized and one package will be installed during the project stub creation. You can generate a project stub from an existing package using Composer. PhpStorm can create new framework-specific applications for you, set up their structure, and download the required packages, if necessary.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |